Only expose wot to rpc if rpc is active
This commit is contained in:
parent
ce3a548c70
commit
560a20e90a
@ -66,7 +66,11 @@ def on_init(api, data=None):
|
|||||||
load_identities_from_blocks())
|
load_identities_from_blocks())
|
||||||
)
|
)
|
||||||
|
|
||||||
plugin_apis['rpc.add_module_to_api'](wot)
|
# Expose WOT to RPC if the RPC plugin is loaded
|
||||||
|
try:
|
||||||
|
plugin_apis['rpc.add_module_to_api'](wot)
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
# load active identity, from there load our trust graph
|
# load active identity, from there load our trust graph
|
||||||
active_identity = config.get('wot.active_identity_name', '')
|
active_identity = config.get('wot.active_identity_name', '')
|
||||||
|
Loading…
Reference in New Issue
Block a user