don't assign the exception to a variable to make flake8 happy

This commit is contained in:
Mike Bonnet
2019-02-05 10:41:11 -08:00
committed by mprahl
parent 8479014de2
commit b4d3c51219

View File

@@ -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.