mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-11 19:08:40 +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):
|
for d in dir(obj):
|
||||||
if d[0] == "_":
|
if d[0] == "_":
|
||||||
continue
|
continue
|
||||||
if getattr(obj, d)._rpcserver_export:
|
if getattr(getattr(obj, d), '_rpcserver_export', False):
|
||||||
log.debug("Registering method: %s", name + "." + d)
|
log.debug("Registering method: %s", name + "." + d)
|
||||||
self.register_function(getattr(obj, d), name + "." + d)
|
self.register_function(getattr(obj, d), name + "." + d)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue