Make a copy of the args and kwargs when making a daemon call in classic mode.. This makes it's

behaviour to the same as when making a RPC
This commit is contained in:
Andrew Resch 2009-09-19 05:16:33 +00:00
parent 3f8441af6a
commit 9c40b777f3
1 changed files with 4 additions and 1 deletions

View File

@ -430,8 +430,11 @@ class DaemonClassicProxy(DaemonProxy):
d.errback(e) d.errback(e)
return d return d
_args = list(args)
_kwargs = dict(kwargs)
try: try:
result = m(*args, **kwargs) result = m(*_args, **_kwargs)
except Exception, e: except Exception, e:
d.errback(e) d.errback(e)
else: else: