Handle all exceptions in the consumer handlers.

This commit is contained in:
Jan Kaluza
2017-03-23 14:03:46 +01:00
parent 4a6d961d66
commit 296d69b609

View File

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