summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@yahoo.com.ar>2013-07-03 12:17:17 -0300
committerIvan Alejandro <ivanalejandro0@yahoo.com.ar>2013-07-03 12:17:17 -0300
commitf4383108c8613067c5e39aa42f14f40e105a0e25 (patch)
tree7d39486deadbac93aceb407836389ce1857b0970 /src
parentb5516cc47b887d989690bde102441726927b84f1 (diff)
Bugfix: show error message on registration problem
Closes #3039.
Diffstat (limited to 'src')
-rw-r--r--src/leap/gui/wizard.py3
1 files changed, 2 insertions, 1 deletions
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):