mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 10:28:39 +00:00
Some comment explanation.
This commit is contained in:
parent
9b812a4eec
commit
71f411e458
1 changed files with 7 additions and 0 deletions
|
@ -182,6 +182,13 @@ class DelugeRPCProtocol(Protocol):
|
||||||
exception_cls = getattr(error, request[2])
|
exception_cls = getattr(error, request[2])
|
||||||
exception = exception_cls(*request[3], **request[4])
|
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]
|
r = self.__rpc_requests[request_id]
|
||||||
msg = "RPCError Message Received!"
|
msg = "RPCError Message Received!"
|
||||||
msg += "\n" + "-" * 80
|
msg += "\n" + "-" * 80
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue