There may not be any destinations.

This commit is contained in:
Jean-Paul Calderone 2019-03-04 10:08:46 -05:00
parent 7885ba6d72
commit c6a2aa9fc7

View File

@ -185,7 +185,7 @@ def dispatch(config,
return d
def _maybe_enable_eliot_logging(options, reactor):
if options["destinations"]:
if options.get("destinations"):
service = eliot_logging_service(reactor, options["destinations"])
# There is no Twisted "Application" around to hang this on so start
# and stop it ourselves.