Skip to content

Commit

Permalink
Merge pull request #42 from SableRaf/main
Browse files Browse the repository at this point in the history
Add a check for `categories` property
  • Loading branch information
SableRaf authored Jan 11, 2025
2 parents 0cff20f + e9d3688 commit 63b2d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/add_new_contribution_to_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

props = json.loads(argv[1])
# process category list
if props['categories']:
if 'categories' in props and props['categories']:
props['categories'] = sorted(props['categories'].replace('"', '').split(','))
props['categories'] = [category.strip() for category in props['categories']]
else:
Expand Down

0 comments on commit 63b2d47

Please sign in to comment.