Skip to content

Commit

Permalink
avoid exception if issn not found DOAJ/doajPM#4031
Browse files Browse the repository at this point in the history
  • Loading branch information
philipkcl committed Dec 26, 2024
1 parent 95c6f13 commit 4e8b556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portality/tasks/datalog_journal_added_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def sync_datalog_journal_added(logger_fn: Callable[[str], None] = None):
fetch_date = get_fetch_datalog_date()
logger_fn(f'latest_date of Datalog: {fetch_date}')
new_datalog_list = find_new_datalog_journals(fetch_date)
new_datalog_list = (r for r in new_datalog_list if not datalog_journal_added.is_issn_exists(r.issn, r.date_added))
new_datalog_list = (r for r in new_datalog_list if r.issn and not datalog_journal_added.is_issn_exists(r.issn, r.date_added))
new_datalog_list = (dao.patch_model_for_bulk(r) for r in new_datalog_list)
new_datalog_list = list(new_datalog_list)
if new_datalog_list:
Expand Down

0 comments on commit 4e8b556

Please sign in to comment.