From b4d3c512197bfe49445b5fc986150c40b78b3a01 Mon Sep 17 00:00:00 2001 From: Mike Bonnet Date: Tue, 5 Feb 2019 10:41:11 -0800 Subject: [PATCH] don't assign the exception to a variable to make flake8 happy --- module_build_service/messaging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.