Test if there is args when procession UserWarning for issue801

This commit is contained in:
Cédric Krier committed 2009-02-23 00:16:13 +01:00
1 parent 7086f46931
commit 47830abe87
1 file changed
+6 -4
+6 -4
View File
@@ -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':