diff options
author | bfox <bfox> | 2001-01-23 22:54:59 +0000 |
---|---|---|
committer | bfox <bfox> | 2001-01-23 22:54:59 +0000 |
commit | 628661cdd56896667b3a85366a3b0f0e7e12eb7b (patch) | |
tree | cb49fa7a87287548479b567826d57738f4a56220 /todo.py | |
parent | 7d2c8d3771334baaf95b20015c1da38dc20f385d (diff) | |
download | anaconda-628661cdd56896667b3a85366a3b0f0e7e12eb7b.tar.gz anaconda-628661cdd56896667b3a85366a3b0f0e7e12eb7b.tar.xz anaconda-628661cdd56896667b3a85366a3b0f0e7e12eb7b.zip |
Caught exception in firewall port list code.
Diffstat (limited to 'todo.py')
-rw-r--r-- | todo.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 ] |