From c4a371e98ce99b979dabd9907b35bce49df52d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 8 Apr 2009 00:57:14 +0200 Subject: [PATCH] Test for Unauthorised exception from roundup to loop on popup for issue937 --- tryton/common/common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tryton/common/common.py b/tryton/common/common.py index 4c3c8a7833..8ce29b1fc5 100644 --- a/tryton/common/common.py +++ b/tryton/common/common.py @@ -561,6 +561,10 @@ def send_bugtracker(msg, parent): 'issue%s' % issue_id, parent) webbrowser.open(CONFIG['roundup.url'] + 'issue%s' % issue_id, new=2) except Exception, exception: + if 'roundup.cgi.exceptions.Unauthorised' in exception.faultString: + message(_('Connection error!\n' \ + 'Bad username or password!'), parent) + return send_bugtracker(msg, parent) tb_s = reduce(lambda x, y: x + y, traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback))