Skip to content

Commit

Permalink
fix: check for None values in ocid_fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
yolile committed Dec 9, 2024
1 parent f31191c commit e087dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kingfisher_scrapy/spidermiddlewares.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ async def process_spider_output(self, response, result, spider):
# Kingfisher Process merges only releases and records with OCIDs.
if hasattr(spider, 'ocid_fallback'):
for entry in items:
if 'ocid' not in entry:
if entry and 'ocid' not in entry:
entry['ocid'] = spider.ocid_fallback(entry)

package = copy.deepcopy(template)
Expand Down

0 comments on commit e087dfe

Please sign in to comment.