diff --git a/module_build_service/messaging.py b/module_build_service/messaging.py index 01208149..09e8d23f 100644 --- a/module_build_service/messaging.py +++ b/module_build_service/messaging.py @@ -295,7 +295,7 @@ def _in_memory_publish(topic, msg, conf, service): work_queue_put(wrapped_msg) except ValueError as e: log.warning("No MBSConsumer found. Shutting down? %r" % e) - except AttributeError as e: + except AttributeError: # In the event that `moksha.hub._hub` hasn't yet been initialized, we # need to store messages on the side until it becomes available. # As a last-ditch effort, try to hang initial messages in the config.