Show up login dialog on 404 error when login

Only 404 needs to go back to login dialog.

issue5837
review21231003
This commit is contained in:
Cédric Krier committed 2016-08-31 22:58:05 +02:00
1 parent 36aab63dac
commit d214800cda
1 file changed
+1 -1
+1 -1
View File
@@ -841,7 +841,7 @@ class Main(object):
and exception.faultCode == 'QueryCanceled'):
return
if (isinstance(exception, TrytonServerError)
and exception.faultCode.startswith('403')):
and exception.faultCode.startswith('404')):
return self.sig_login()
common.process_exception(exception)
return