LINT fixes

This commit is contained in:
Fabio Manganiello 2022-11-11 21:49:38 +01:00
parent 02a4c9f667
commit 26f869b6e4
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -86,7 +86,7 @@ class Daemon:
self.redis_queue = redis_queue or self._default_redis_queue
self.config_file = config_file
Config.init(self.config_file)
logging.basicConfig(**Config.get('logging'))
logging.basicConfig(**(Config.get('logging') or {}))
redis_conf = Config.get('backend.redis') or {}
self.bus = RedisBus(
@ -250,6 +250,7 @@ class Daemon:
self.cron_scheduler = CronScheduler(jobs=Config.get_cronjobs())
self.cron_scheduler.start()
assert self.bus, 'The bus is not running'
self.bus.post(ApplicationStartedEvent())
# Poll for messages on the bus