mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 03:38:12 +08:00
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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user