fixed KeyError

This commit is contained in:
Johannes Findeisen 2013-10-20 23:53:16 +02:00
commit 2b635275de

View file

@ -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