BaseDocumentationSpider: Print correct link on error.

This commit is contained in:
Aman Agrawal 2020-10-14 09:47:22 +05:30 committed by Tim Abbott
parent 7a1132d605
commit 72b25553b2
1 changed files with 1 additions and 1 deletions

View File

@ -159,6 +159,6 @@ class BaseDocumentationSpider(scrapy.Spider):
if response.status == 405 and response.request.method == 'HEAD': if response.status == 405 and response.request.method == 'HEAD':
# Method 'HEAD' not allowed, repeat request with 'GET' # Method 'HEAD' not allowed, repeat request with 'GET'
return self.retry_request_with_get(response.request) return self.retry_request_with_get(response.request)
self.logger.error("Please check link: %s", response) self.logger.error("Please check link: %s", response.request.url)
return failure return failure