[PATCH] filer.login raises an exception with it can't login, not returns None (#486454).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux