mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-11 17:14:59 +08:00
Handle all exceptions in the consumer handlers.
This commit is contained in:
@@ -206,7 +206,7 @@ class MBSConsumer(fedmsg.consumers.FedmsgConsumer):
|
||||
further_work = []
|
||||
try:
|
||||
further_work = handler(conf, session, msg) or []
|
||||
except ValidationError as e:
|
||||
except Exception as e:
|
||||
if build:
|
||||
build.transition(conf, state=models.BUILD_STATES['failed'],
|
||||
state_reason=str(e))
|
||||
|
||||
Reference in New Issue
Block a user