[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Catch IOError when enabling repos (#500439).
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] Catch IOError when enabling repos (#500439).
- Date: Wed, 13 May 2009 13:16:02 -0400
---
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 5f688f5..a91209a 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
--
1.6.1.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]