diff options
author | Chris Lumens <clumens@redhat.com> | 2009-04-23 13:01:35 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-04-23 14:17:14 -0400 |
commit | cfac7bcb2079b463e33c2401002575d0de12d9b2 (patch) | |
tree | 488fb8e49604b3245dca24961fda684888bd56d8 /yuminstall.py | |
parent | 11bbfaa2b00d1a212462c689834a9179b15cb843 (diff) | |
download | anaconda-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 'yuminstall.py')
-rw-r--r-- | yuminstall.py | 4 |
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 |