Skip to content

Commit 63b2d47

Browse files
authored
Merge pull request #42 from SableRaf/main
Add a check for `categories` property
2 parents 0cff20f + e9d3688 commit 63b2d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: scripts/add_new_contribution_to_yaml.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
props = json.loads(argv[1])
1717
# process category list
18-
if props['categories']:
18+
if 'categories' in props and props['categories']:
1919
props['categories'] = sorted(props['categories'].replace('"', '').split(','))
2020
props['categories'] = [category.strip() for category in props['categories']]
2121
else:

0 commit comments

Comments
 (0)