Skip to content

Commit

Permalink
Handle None content in OAIPMH
Browse files Browse the repository at this point in the history
  • Loading branch information
physikerwelt committed Nov 16, 2024
1 parent f8fd13b commit ab28a49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/zbmath_rest2oai/writeOai.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@


def content_differs(current, content) -> bool:
return content != current['content']['content']
try:
return content != current['content']['content']
except TypeError:
# Content is None
return True


async def sync_item(session, identifier, tags, ingest_format, content):
Expand Down

0 comments on commit ab28a49

Please sign in to comment.