Skip to content

Commit

Permalink
Add missing yield in ZipSpider.parse
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jun 2, 2020
1 parent c717c7f commit 3265f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kingfisher_scrapy/base_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def start_requests(self):
@handle_error
def parse(self, response):
if self.zip_file_format:
self.build_file_from_response(response, data_type='zip', post_to_api=False)
yield self.build_file_from_response(response, data_type='zip', post_to_api=False)

zip_file = ZipFile(BytesIO(response.body))
for finfo in zip_file.infolist():
Expand Down

0 comments on commit 3265f68

Please sign in to comment.