Skip to content

Commit

Permalink
downloadermiddlewares: Fix caller
Browse files Browse the repository at this point in the history
Co-authored-by: Yohanna Lisnichuk <yohanitalisnichuk@gmail.com>
  • Loading branch information
jpmckinney and yolile committed Apr 20, 2022
1 parent 8f8bcd3 commit 3b56bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kingfisher_scrapy/downloadermiddlewares.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def process_request(self, request, spider):
raise IgnoreRequest("Max attempts to get an access token reached. Stopping crawl...")
request.headers['Authorization'] = spider.access_token
if self._expires_soon(spider):
return spider.add_request_to_backlog_and_build_access_token_request(spider, request)
return self.add_request_to_backlog_and_build_access_token_request(spider, request)

def process_response(self, request, response, spider):
if response.status == 401 or response.status == 429:
Expand Down

0 comments on commit 3b56bd5

Please sign in to comment.