Skip to content

Commit

Permalink
Further input sanitizing
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh committed Sep 4, 2024
1 parent cca312c commit f2d8408
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/kg_bioportal/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ def get_ontology_list(self) -> None:

name = metadata["name"].replace("\n", " ").replace("\t", " ")
if len(latest_submission) > 0:
current_version = latest_submission["version"].replace("\n", " ").replace("\t", " ")
if current_version:
current_version = latest_submission["version"].replace("\n", " ").replace("\t", " ")
else:
current_version = "NA"
submission_id = latest_submission["submissionId"]
else:
current_version = "NA"
Expand Down

0 comments on commit f2d8408

Please sign in to comment.