Skip to content

Commit

Permalink
safeguards for missing keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
dansand committed May 20, 2024
1 parent 3e0b7bb commit b99ee09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/write_repo_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@
#######
# Add issue keywords as repository topics
keywords = []
sciencekeywords = issue_dict.get("scientific_keywords", [])
softwarekeywords = issue_dict["software"].get("keywords", [])
sciencekeywords = data.get("scientific_keywords", [])
softwarekeywords = data["software"].get("keywords", [])
keywords += sciencekeywords + softwarekeywords

#ensure keywords have valid format
Expand Down

0 comments on commit b99ee09

Please sign in to comment.