Skip to content

Commit

Permalink
Small fix. See #452
Browse files Browse the repository at this point in the history
  • Loading branch information
breyten committed Jan 29, 2024
1 parent f3ecb0a commit f810dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocd_backend/transformers/ibabs_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def report_item(self, content_type, raw_item, canonical_iri, cached_path, **kwar
report.result = ResultFailed

report.attachment = list()
for document in original_item['_Extra']['Documents'] or []:
for document in original_item['_Extra'].get('Documents', []) or []:
attachment_file = MediaObject(document['Id'],
collection='attachment',
**source_defaults)
Expand Down

0 comments on commit f810dd5

Please sign in to comment.