diff --git a/src/kg_bioportal/downloader.py b/src/kg_bioportal/downloader.py index 40ce8d0..8bc64bd 100644 --- a/src/kg_bioportal/downloader.py +++ b/src/kg_bioportal/downloader.py @@ -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"