summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yuminstall.py b/yuminstall.py
index 753e09969..d097eaa94 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -201,8 +201,8 @@ class AnacondaCallback:
if os.path.dirname(fn).startswith("%s/var/cache/yum/" % self.rootPath):
try:
os.unlink(fn)
- except OSError, e:
- log.debug("unable to remove file %s" %(e,))
+ except OSError as e:
+ log.debug("unable to remove file %s" %(e.strerror,))
self.donepkgs += 1
self.doneSize += self.inProgressPo.returnSimple("installedsize") / 1024.0