[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] filer.login raises an exception with it can't login, not returns None (#486454).
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] filer.login raises an exception with it can't login, not returns None (#486454).
- Date: Thu, 19 Feb 2009 16:02:26 -0500
---
exception.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/exception.py b/exception.py
index 23149a8..7b6fdea 100644
--- a/exception.py
+++ b/exception.py
@@ -419,7 +419,9 @@ def saveToBugzilla(anaconda, exn, dest):
if not exn.tbFile:
exn.write(anaconda)
- if not filer.login(dest[0], dest[1]):
+ try:
+ cred = withBugzillaDo(filer, lambda b: b.login(dest[0], dest[1]))
+ except LoginError:
anaconda.intf.messageWindow(_("Unable To Login"),
_("There was an error logging into %s "
"using the provided username and "
--
1.6.0.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]