Skip to content

Commit

Permalink
honduras_portal_bulk_files: Restore .get() in case publisher was not set
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 16, 2020
1 parent 4c41150 commit ab10cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kingfisher_scrapy/spiders/honduras_portal_bulk_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def from_crawler(cls, crawler, publisher=None, *args, **kwargs):
if publisher and publisher not in spider.publishers:
raise scrapy.exceptions.CloseSpider('Specified publisher is not recognized')

spider.publisher_name = spider.publishers[publisher]
spider.publisher_name = spider.publishers.get(publisher)

return spider

Expand Down

0 comments on commit ab10cb5

Please sign in to comment.