fixed KeyError
This commit is contained in:
parent
39beaee68b
commit
2b635275de
1 changed files with 9 additions and 4 deletions
|
|
@ -126,6 +126,11 @@ def main():
|
||||||
|
|
||||||
interface = LinspectorInterface(jobs, scheduler, linConf)
|
interface = LinspectorInterface(jobs, scheduler, linConf)
|
||||||
|
|
||||||
|
try:
|
||||||
|
core["jsonrpc_backend"]
|
||||||
|
except KeyError:
|
||||||
|
log.debug("JsonrpcBackend not enabled")
|
||||||
|
else:
|
||||||
if core["jsonrpc_backend"]:
|
if core["jsonrpc_backend"]:
|
||||||
jsonrpc = JsonrpcBackend(interface, core)
|
jsonrpc = JsonrpcBackend(interface, core)
|
||||||
jsonrpc.daemon = True
|
jsonrpc.daemon = True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue