Skip to content

Commit

Permalink
Merge pull request #154 from MaRDI4NFDI/fix_misc
Browse files Browse the repository at this point in the history
Update misc.py
  • Loading branch information
LizzAlice authored Oct 22, 2024
2 parents a142c62 + 348f245 commit 6f068d8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mardi_importer/mardi_importer/zbmath/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,11 @@ def get_info_from_doi(doi, key):
for doi in doi_list:
try:
work_info = cr.works(ids=doi)
# print("work info")
# print(work_info)
if not work_info:
continue
if key == "document_title":
if "title" not in work_info["message"]:
continue
# print(work_info["message"])
# print(work_info["message"]["title"])
title_list = work_info["message"]["title"]
if title_list:
joint_title = ";".join(title_list).strip()
Expand Down

0 comments on commit 6f068d8

Please sign in to comment.