Improve exception handling
This commit is contained in:
1 parent
7fae81a1b3
commit
d99afb5387
1 file changed
+5
-3
@@ -110,11 +110,13 @@ class Tree(SignalEvent):
|
||||
|
||||
def sig_reload(self, widget=None):
|
||||
try:
|
||||
ids = rpc.execute('object', 'execute', self.model,
|
||||
args = ('object', 'execute', self.model,
|
||||
'search', self.domain2, 0, None, None, self.context)
|
||||
ids = rpc.execute(*args)
|
||||
except Exception, exception:
|
||||
common.process_exception(exception, self.window)
|
||||
return
|
||||
ids = common.process_exception(exception, self.window, *args)
|
||||
if not ids:
|
||||
return
|
||||
if self.tree_res.toolbar:
|
||||
|
||||
icon_name = 'icon'
|
||||
|
||||
Reference in new issue
Block a user