From 628661cdd56896667b3a85366a3b0f0e7e12eb7b Mon Sep 17 00:00:00 2001 From: bfox Date: Tue, 23 Jan 2001 22:54:59 +0000 Subject: Caught exception in firewall port list code. --- todo.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'todo.py') diff --git a/todo.py b/todo.py index d57fd717d..fadcad248 100644 --- a/todo.py +++ b/todo.py @@ -759,8 +759,11 @@ class ToDo: ports = string.split(self.firewall.portlist,',') for port in ports: port = string.strip(port) - if not string.index(port,':'): - port = '%s:tcp' % port + try: + if not string.index(port,':'): + port = '%s:tcp' % port + except: + pass self.firewall.ports.append(port) for port in self.firewall.ports: args = args + [ "--port", port ] -- cgit