From a3eedd8947fbff02642bdabafa301c4846d9abdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 14 Aug 2008 13:31:55 +0200 Subject: [PATCH] Improve exception handling --- tryton/gui/window/tree.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tryton/gui/window/tree.py b/tryton/gui/window/tree.py index 63c4549382..cb9c8b0cb9 100644 --- a/tryton/gui/window/tree.py +++ b/tryton/gui/window/tree.py @@ -130,11 +130,13 @@ class Tree(SignalEvent): ctx = {} ctx.update(rpc.CONTEXT) try: - results = rpc.execute('object', 'execute', + args = ('object', 'execute', self.view['model'], 'read', ids, ['name', icon_name], ctx) + results = rpc.execute(*args) except Exception, exception: - common.process_exception(exception, self.window) - return + results = common.process_exception(exception, self.window, *args) + if not results: + return radiotb = None for res in results: radiotb = gtk.RadioToolButton(group=radiotb)