mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-01 18:01:40 +08:00
Fix UnboundLocalError.
I have hotfixed this in production on mbs-backend01::
Traceback (most recent call last):
File "module_build_service/scheduler/consumer.py", line 134, in consume
self.process_message(session, msg)
File "module_build_service/scheduler/consumer.py", line 224, in process_message
for event in further_work:
UnboundLocalError: local variable 'further_work' referenced before assignment
This commit is contained in:
@@ -203,6 +203,7 @@ class MBSConsumer(fedmsg.consumers.FedmsgConsumer):
|
||||
log.debug("Handler is NO_OP: %s" % idx)
|
||||
else:
|
||||
log.debug("Calling %s" % idx)
|
||||
further_work = []
|
||||
try:
|
||||
further_work = handler(conf, session, msg) or []
|
||||
except ValidationError as e:
|
||||
|
||||
Reference in New Issue
Block a user