mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 01:18:39 +00:00
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:
parent
3f8441af6a
commit
9c40b777f3
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue