diff options
Diffstat (limited to 'scripts/phenotypes_bulk_edit.py')
-rw-r--r-- | scripts/phenotypes_bulk_edit.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/phenotypes_bulk_edit.py b/scripts/phenotypes_bulk_edit.py index b647199..c0174be 100644 --- a/scripts/phenotypes_bulk_edit.py +++ b/scripts/phenotypes_bulk_edit.py @@ -107,6 +107,10 @@ def __fetch_new_pubmed_ids__(pubmed_ids): # See whether we can retrieve multiple publications in one go # Parse data and save to DB # Return PublicationId(s) for new publication(s). + if len(pubmed_ids) == 0: + logger.debug("There are no new PubMed IDs to fetch") + return tuple() + logger.info("Fetching publications data for the following PubMed IDs: %s", ", ".join(pubmed_ids)) |