mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
fix attribute error caused by attributes/functions without
_rpcserver_export
This commit is contained in:
parent
641c27a90a
commit
2e6dd5b945
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class RPCServer(ThreadingMixIn, SimpleXMLRPCServer.SimpleXMLRPCServer, component
|
|||
for d in dir(obj):
|
||||
if d[0] == "_":
|
||||
continue
|
||||
if getattr(obj, d)._rpcserver_export:
|
||||
if getattr(getattr(obj, d), '_rpcserver_export', False):
|
||||
log.debug("Registering method: %s", name + "." + d)
|
||||
self.register_function(getattr(obj, d), name + "." + d)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue