From 641f4fc5b27fb674cd20da4258cf376fb052b54f Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Thu, 19 Feb 2009 16:01:22 -0500 Subject: filer.login raises an exception with it can't login, not returns None (#486454). --- exception.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'exception.py') 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 " -- cgit