summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorbfox <bfox>2001-01-23 22:54:59 +0000
committerbfox <bfox>2001-01-23 22:54:59 +0000
commit628661cdd56896667b3a85366a3b0f0e7e12eb7b (patch)
treecb49fa7a87287548479b567826d57738f4a56220 /todo.py
parent7d2c8d3771334baaf95b20015c1da38dc20f385d (diff)
downloadanaconda-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.py7
1 files changed, 5 insertions, 2 deletions
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 ]