summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
Diffstat (limited to 'iw')
-rw-r--r--iw/task_gui.py4
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