Skip to content

Commit

Permalink
Merge pull request #1107 from open-contracting/fix-chile-compra
Browse files Browse the repository at this point in the history
fix: parse_list_loader must not be a generator
  • Loading branch information
jpmckinney authored Oct 10, 2024
2 parents 37c24cb + ece41f7 commit 7f5fc1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kingfisher_scrapy/spiders/chile_compra_api_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,9 @@ def parse_list_loader(self, response):
try:
data = response.json()
except JSONDecodeError:
yield self.build_file_error_from_response(
return self.build_file_error_from_response(
response, errors={'http_code': response.status, 'text': response.text}
)
return

if set(data) == {'detail', 'status'}:
data['http_code'] = data['status']
Expand Down

0 comments on commit 7f5fc1f

Please sign in to comment.