summaryrefslogtreecommitdiffstats
path: root/security.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-04-23 13:01:35 -0400
committerChris Lumens <clumens@redhat.com>2009-04-23 14:17:14 -0400
commitcfac7bcb2079b463e33c2401002575d0de12d9b2 (patch)
tree488fb8e49604b3245dca24961fda684888bd56d8 /security.py
parent11bbfaa2b00d1a212462c689834a9179b15cb843 (diff)
downloadanaconda-cfac7bcb2079b463e33c2401002575d0de12d9b2.tar.gz
anaconda-cfac7bcb2079b463e33c2401002575d0de12d9b2.tar.xz
anaconda-cfac7bcb2079b463e33c2401002575d0de12d9b2.zip
When catching an OSError, handle it as an object instead of a tuple (#497374).
Diffstat (limited to 'security.py')
-rw-r--r--security.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/security.py b/security.py
index c78428782..bd5c9da32 100644
--- a/security.py
+++ b/security.py
@@ -72,7 +72,5 @@ class Security:
log.info("would have run %s" %(args,))
except RuntimeError, msg:
log.error ("lokkit run failed: %s" %(msg,))
- except OSError, (errno, msg):
- log.error ("lokkit run failed: %s" %(msg,))
-
-
+ except OSError as e:
+ log.error ("lokkit run failed: %s" % e.strerror)