diff options
author | Chris Lumens <clumens@redhat.com> | 2009-05-13 13:14:56 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-05-13 14:07:04 -0400 |
commit | 586787dddd646f51ba17a591e31e5811f470325e (patch) | |
tree | 63b7c0d1c85f1ef64f4fbe8e1b6b083ad846f27b /iw | |
parent | cbe1dc67f454baaed9c6289391888f23db3dac6d (diff) | |
download | anaconda-586787dddd646f51ba17a591e31e5811f470325e.tar.gz anaconda-586787dddd646f51ba17a591e31e5811f470325e.tar.xz anaconda-586787dddd646f51ba17a591e31e5811f470325e.zip |
Catch IOError when enabling repos (#500439).
Diffstat (limited to 'iw')
-rw-r--r-- | iw/task_gui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iw/task_gui.py b/iw/task_gui.py index 5f688f5c5..a91209af3 100644 --- a/iw/task_gui.py +++ b/iw/task_gui.py @@ -59,12 +59,12 @@ def setupRepo(anaconda, repo): else: repo.groups_added = True log.info("added group information for repository %s" %(repo.name)) - except yum.Errors.RepoError, e: + except (IOError, yum.Errors.RepoError) as e: anaconda.intf.messageWindow(_("Error"), _("Unable to read package metadata from repository. " "This may be due to a missing repodata directory. " "Please ensure that your repository has been " - "correctly generated.\n\n%s" %(e,)), + "correctly generated.\n\n%s" % str(e)), type="ok", custom_icon="error") anaconda.backend.ayum.repos.delete(repo.id) return False |