Don't display error message when cancelling login for issue180

This commit is contained in:
Cédric Krier committed 2008-07-18 11:48:49 +02:00
1 parent 9c49206e36
commit 5f0c01d60d
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -591,7 +591,7 @@ def process_exception(exception, parent, obj='', method='', *args):
while True:
password = ask(_('Password:'), parent, visibility=False)
if password is None:
break
raise Exception('NotLogged')
res = rpc.login(rpc._USERNAME, password, rpc._SOCK.host,
rpc._SOCK.port, rpc._DATABASE)
if res < 0:
+4
View File
@@ -66,6 +66,10 @@ class TrytonClient(object):
def excepthook(exctyp, value, tb):
import common
if str(value) == 'NotLogged':
return
tb_s = reduce(lambda x, y: x+y,
traceback.format_exception(exctyp, value, tb))
for path in sys.path: