Process exception in global_search
At least, it gives feedback to the user when something goes wrong. review676002
This commit is contained in:
1 parent
e1e4c17043
commit
a727ce3f08
1 file changed
+2
-2
+2
-2
@@ -335,8 +335,8 @@ class Main(object):
|
||||
try:
|
||||
result = RPCExecute('model', 'ir.model', 'global_search',
|
||||
search_text, CONFIG['client.limit'],
|
||||
self.menu_screen.model_name, process_exception=False)
|
||||
except (TrytonError, TrytonServerError):
|
||||
self.menu_screen.model_name)
|
||||
except RPCException:
|
||||
result = []
|
||||
if search_text != widget.get_text().decode('utf-8'):
|
||||
return False
|
||||
|
||||
Reference in new issue
Block a user