diff --git a/kingfisher_scrapy/spiders/argentina_mendoza_province_bulk.py b/kingfisher_scrapy/spiders/argentina_mendoza_province_bulk.py index 3aea5983e..06e3fb4c7 100644 --- a/kingfisher_scrapy/spiders/argentina_mendoza_province_bulk.py +++ b/kingfisher_scrapy/spiders/argentina_mendoza_province_bulk.py @@ -1,7 +1,7 @@ import scrapy from kingfisher_scrapy.base_spiders import SimpleSpider -from kingfisher_scrapy.util import components +from kingfisher_scrapy.util import components, handle_http_error class ArgentinaMendozaProvinceBulk(SimpleSpider): @@ -21,6 +21,7 @@ class ArgentinaMendozaProvinceBulk(SimpleSpider): def start_requests(self): yield scrapy.Request(f'{self.base_url}/datasets/', callback=self.parse_list) + @handle_http_error def parse_list(self, response): for file_url in response.xpath('//div/a/@href').getall(): if file_url.endswith('.json'):