From f4383108c8613067c5e39aa42f14f40e105a0e25 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Wed, 3 Jul 2013 12:17:17 -0300 Subject: Bugfix: show error message on registration problem Closes #3039. --- changes/bug_3039-registration-error-message | 1 + src/leap/gui/wizard.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changes/bug_3039-registration-error-message diff --git a/changes/bug_3039-registration-error-message b/changes/bug_3039-registration-error-message new file mode 100644 index 00000000..ef964d63 --- /dev/null +++ b/changes/bug_3039-registration-error-message @@ -0,0 +1 @@ + o Bugfix: display error message on registration problem. Closes #3039. diff --git a/src/leap/gui/wizard.py b/src/leap/gui/wizard.py index b29250c8..67ade349 100644 --- a/src/leap/gui/wizard.py +++ b/src/leap/gui/wizard.py @@ -304,9 +304,10 @@ class Wizard(QtGui.QWizard): error_msg = json_content.get("errors").get("login")[0] if not error_msg.istitle(): error_msg = "%s %s" % (old_username, error_msg) - self._set_register_status(error_msg, error=True) except: logger.error("Unknown error: %r" % (req.content,)) + + self._set_register_status(error_msg, error=True) self.ui.btnRegister.setEnabled(True) def _set_register_status(self, status, error=False): -- cgit v1.2.3