From 47830abe87530e45c7023391c2b2869cc4837ceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 23 Feb 2009 00:16:13 +0100 Subject: [PATCH] Test if there is args when procession UserWarning for issue801 --- tryton/common/common.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tryton/common/common.py b/tryton/common/common.py index a85e221558..1de7ef1cf9 100644 --- a/tryton/common/common.py +++ b/tryton/common/common.py @@ -823,10 +823,12 @@ def process_exception(exception, parent, *args): rpc.execute(*args2) except Exception, exception: process_exception(exception, parent, *args2) - try: - return rpc.execute(*args) - except Exception, exception: - return process_exception(exception, parent, *args) + if args: + try: + return rpc.execute(*args) + except Exception, exception: + return process_exception(exception, parent, *args) + return True return False if exception.args[0] == 'UserError':