aboutsummaryrefslogtreecommitdiffstats
path: root/python/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'python/scripts')
-rwxr-xr-xpython/scripts/doaj2ingestrequest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/scripts/doaj2ingestrequest.py b/python/scripts/doaj2ingestrequest.py
index f1bae8c..b981ab6 100755
--- a/python/scripts/doaj2ingestrequest.py
+++ b/python/scripts/doaj2ingestrequest.py
@@ -74,7 +74,7 @@ def transform(obj: dict) -> List[dict]:
doi: Optional[str] = None
for ident in (bibjson['identifier'] or []):
- if ident['type'].lower() == "doi" and ident['id'].startswith('10.'):
+ if ident['type'].lower() == "doi" and ident.get('id') and ident['id'].startswith('10.'):
doi = ident['id'].lower()
for link in (bibjson['link'] or []):