Add process_exception in sig_win_new for issue803
This commit is contained in:
1 parent
da9861b29f
commit
7086f46931
1 file changed
+6
-4
+6
-4
@@ -1145,11 +1145,13 @@ class Main(object):
|
||||
def sig_win_new(self, widget=None, menu_type='menu', quiet=True,
|
||||
except_id=False, prefs=None):
|
||||
if not prefs:
|
||||
args = ('model', 'res.user', 'get_preferences', False, rpc.CONTEXT)
|
||||
try:
|
||||
prefs = rpc.execute('model', 'res.user', 'get_preferences',
|
||||
False, rpc.CONTEXT)
|
||||
except:
|
||||
return False
|
||||
prefs = rpc.execute(*args)
|
||||
except Exception, exception:
|
||||
prefs = common.process_exception(exception, self.window, *args)
|
||||
if not prefs:
|
||||
return False
|
||||
sb_id = self.sb_username.get_context_id('message')
|
||||
self.sb_username.push(sb_id, prefs['status_bar'] or '')
|
||||
sb_id = self.sb_servername.get_context_id('message')
|
||||
|
||||
Reference in new issue
Block a user