diff options
author | Chris Lumens <clumens@redhat.com> | 2005-11-15 18:27:54 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-11-15 18:27:54 +0000 |
commit | 597817f1cb09600e916c0d338dba1d4cee10d6a0 (patch) | |
tree | 16ba52ccbb518e43c60a6eedc480d428f301974c /scripts/pkgorder | |
parent | d2dd85a45d0e3d5bdfd58a47e5dbe3e597e42b61 (diff) | |
download | anaconda-597817f1cb09600e916c0d338dba1d4cee10d6a0.tar.gz anaconda-597817f1cb09600e916c0d338dba1d4cee10d6a0.tar.xz anaconda-597817f1cb09600e916c0d338dba1d4cee10d6a0.zip |
Catch OSError as well.
Diffstat (limited to 'scripts/pkgorder')
-rwxr-xr-x | scripts/pkgorder | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pkgorder b/scripts/pkgorder index 0bae2a259..98f191b95 100755 --- a/scripts/pkgorder +++ b/scripts/pkgorder @@ -103,7 +103,7 @@ enabled=1 try: (fd, path) = tempfile.mkstemp("", "yum-conf-", toppath) - except IOError, e: + except (OSError, IOError), e: print >> sys.stderr, "Error writing to %s" % (toppath,) sys.exit(1) os.write(fd, yumconfstr) |