mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 03:36:16 +00:00
fix attribute error caused by attributes/functions without
_rpcserver_export
This commit is contained in:
parent
641c27a90a
commit
2e6dd5b945
@ -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…
x
Reference in New Issue
Block a user