Error: local variable revision referenced before assignment
stefiix92 opened this issue · comments
Michal Štefanec commented
Hi,
in the v1.1.4 the code sometimes throws an error
[ERROR] UnboundLocalError: local variable 'revision' referenced before assignment
Traceback (most recent call last):
File "/var/task/notifier.py", line 129, in handler
payload = build_slack_message_from_event(event)
File "/var/task/notifier.py", line 93, in build_slack_message_from_event
attachment = format_slack_attachment(
File "/var/task/notifier.py", line 60, in format_slack_attachment
*revision,
and no event is pushed to the Slack channel
Krzysztof Jagiełło commented
Merged and released in v1.1.5. Thanks for your report and contribution!