Bubble up IgnoreMessage exceptions in get_abstracted_event_info

This allows the MBSConsumer.consume method to log the message and return
without calling the validate_event method.
This commit is contained in:
mprahl
2020-03-04 15:30:23 -05:00
parent d2b3eace3d
commit 757191fded

View File

@@ -182,10 +182,7 @@ class MBSConsumer(fedmsg.consumers.FedmsgConsumer):
def get_abstracted_event_info(message):
parser = default_messaging_backend.get("parser")
if parser:
try:
return parser.parse(message)
except IgnoreMessage:
pass
return parser.parse(message)
else:
raise ValueError("{0} backend does not define a message parser".format(conf.messaging))