You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The workflow currently fails if the categories property is missing from the properties file provided as input. This results in a KeyError when attempting to access props['categories'].
Error log excerpt:
File "/home/runner/work/processing-contributions/processing-contributions/scripts/add_new_contribution_to_yaml.py", line 18, in <module>
if props['categories']:
~~~~~^^^^^^^^^^^^^^
KeyError: 'categories'
Error: Process completed with exit code 1.
Description:
The workflow currently fails if the
categories
property is missing from the properties file provided as input. This results in aKeyError
when attempting to accessprops['categories']
.Error log excerpt:
Steps to Reproduce:
categories
property (for example: https://github.com/KrabCode/LazyGui/releases/download/latest/LazyGui.txt)Proposed Solution:
Add a check for the existence of the key and provide a default value (
None
) if it is not present:Additional Notes
I'll make a PR shortly that will address this issue.
The text was updated successfully, but these errors were encountered: