summaryrefslogtreecommitdiffstats
path: root/deluge/ui/client.py
diff options
context:
space:
mode:
authorPedro Algarvio <pedro@algarvio.me>2011-05-19 00:29:30 +0100
committerPedro Algarvio <pedro@algarvio.me>2011-05-19 00:29:30 +0100
commit71f411e458f11067c12cd17016055c37c5e3c25e (patch)
tree9f681b751e94a3370d6df8b9425e2a9d0ab6fc31 /deluge/ui/client.py
parent9b812a4eec6205b98d9d5c12c14f82611832217a (diff)
downloaddeluge-71f411e458f11067c12cd17016055c37c5e3c25e.tar.gz
deluge-71f411e458f11067c12cd17016055c37c5e3c25e.tar.bz2
deluge-71f411e458f11067c12cd17016055c37c5e3c25e.zip
Some comment explanation.
Diffstat (limited to 'deluge/ui/client.py')
-rw-r--r--deluge/ui/client.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/deluge/ui/client.py b/deluge/ui/client.py
index d356b228b..b2de0b138 100644
--- a/deluge/ui/client.py
+++ b/deluge/ui/client.py
@@ -182,6 +182,13 @@ class DelugeRPCProtocol(Protocol):
exception_cls = getattr(error, request[2])
exception = exception_cls(*request[3], **request[4])
+ # Ideally we would chain the deferreds instead of instance
+ # checking just to log them. But, that would mean that any
+ # errback on the fist deferred should returns it's failure
+ # so it could pass back to the 2nd deferred on the chain. But,
+ # that does not always happen.
+ # So, just do some instance checking and just log rpc error at
+ # diferent levels.
r = self.__rpc_requests[request_id]
msg = "RPCError Message Received!"
msg += "\n" + "-" * 80