From 26f869b6e4ce833e59f18519d0c50284a85d41ef Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 11 Nov 2022 21:49:38 +0100 Subject: [PATCH] LINT fixes --- platypush/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platypush/__init__.py b/platypush/__init__.py index eb68b7bde..0ece67e9d 100644 --- a/platypush/__init__.py +++ b/platypush/__init__.py @@ -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