summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
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