summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-02-19 16:01:22 -0500
committerChris Lumens <clumens@redhat.com>2009-02-19 16:25:06 -0500
commit641f4fc5b27fb674cd20da4258cf376fb052b54f (patch)
tree7ddd548aa070cd8f2a8a51e1aa3f00fc5036a961 /exception.py
parente2101c8a8fe8f0272d24fdeb008cb845515728c3 (diff)
downloadanaconda-641f4fc5b27fb674cd20da4258cf376fb052b54f.tar.gz
anaconda-641f4fc5b27fb674cd20da4258cf376fb052b54f.tar.xz
anaconda-641f4fc5b27fb674cd20da4258cf376fb052b54f.zip
filer.login raises an exception with it can't login, not returns None (#486454).
Diffstat (limited to 'exception.py')
-rw-r--r--exception.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/exception.py b/exception.py
index 23149a8a7..7b6fdea9d 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 "