Skip to content

Commit

Permalink
Merge pull request #161 from MaRDI4NFDI/fix_empty_keyword
Browse files Browse the repository at this point in the history
catch empty keyword
  • Loading branch information
LizzAlice authored Feb 7, 2025
2 parents 688e42c + 9fdae6a commit 4f06000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mardi_importer/mardi_importer/zbmath/ZBMathSource.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ def push(self):
and info_dict["keywords"].strip() != ""
):
keywords = info_dict["keywords"].strip().split(";")
keywords = [x.strip() for x in keywords]
keywords = [x.strip() for x in keywords if x.strip()]
else:
keywords = None
for attempt in range(5):
Expand Down

0 comments on commit 4f06000

Please sign in to comment.