summaryrefslogtreecommitdiffstats
path: root/packages.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 /packages.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 'packages.py')
-rw-r--r--packages.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages.py b/packages.py
index 04573263a..a7f5e3212 100644
--- a/packages.py
+++ b/packages.py
@@ -225,8 +225,8 @@ def setupTimezone(anaconda):
else:
try:
shutil.copyfile(tzfile, "/etc/localtime")
- except OSError, (errno, msg):
- log.error("Error copying timezone (from %s): %s" %(tzfile, msg))
+ except OSError as e:
+ log.error("Error copying timezone (from %s): %s" %(tzfile, e.strerror))
if iutil.isS390():
return