diff options
author | Ales Kozumplik <akozumpl@redhat.com> | 2011-03-28 09:04:11 +0200 |
---|---|---|
committer | Ales Kozumplik <akozumpl@redhat.com> | 2011-03-28 09:26:29 +0200 |
commit | 1abafb936af37ff6c54bfd20aff469306057e600 (patch) | |
tree | 6014b3ff6a2630c5bb6681e16a0182d9840b1370 /pyanaconda/timezone.py | |
parent | 71cf82ea24e07db7594a3b4b778f261789b207ee (diff) | |
download | anaconda-1abafb936af37ff6c54bfd20aff469306057e600.tar.gz anaconda-1abafb936af37ff6c54bfd20aff469306057e600.tar.xz anaconda-1abafb936af37ff6c54bfd20aff469306057e600.zip |
Use a more general EnvironmentError to catch timezone-file errors.
Resolves: rhbz#691263
Diffstat (limited to 'pyanaconda/timezone.py')
-rw-r--r-- | pyanaconda/timezone.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyanaconda/timezone.py b/pyanaconda/timezone.py index 0f90aac91..405aa9b7b 100644 --- a/pyanaconda/timezone.py +++ b/pyanaconda/timezone.py @@ -40,7 +40,7 @@ class Timezone: else: try: shutil.copyfile(fromFile, instPath + "/etc/localtime") - except OSError as e: + except EnvironmentError as e: log.error("Error copying timezone (from %s): %s" % (fromFile, e.strerror)) f = open(instPath + "/etc/sysconfig/clock", "w") |