summaryrefslogtreecommitdiffstats
path: root/pyanaconda/firewall.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyanaconda/firewall.py')
-rw-r--r--pyanaconda/firewall.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pyanaconda/firewall.py b/pyanaconda/firewall.py
index 750d75538..c11b671da 100644
--- a/pyanaconda/firewall.py
+++ b/pyanaconda/firewall.py
@@ -80,10 +80,8 @@ class Firewall:
stderr="/dev/null")
else:
log.error("would have run %s", args)
- except RuntimeError, msg:
+ except (RuntimeError, OSError) as msg:
log.error ("lokkit run failed: %s", msg)
- except OSError as e:
- log.error ("lokkit run failed: %s", e.strerror)
else:
f = open(instPath +
'/etc/sysconfig/system-config-firewall', 'w')