Skip to content

Commit 7864742

Browse files
committed
Merge pull request scrapy#1208 from vice/patch-1
Correct login request example
2 parents 40fbeb3 + 178440a commit 7864742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/topics/request-response.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ method for this job. Here's an example spider which uses it::
367367
def after_login(self, response):
368368
# check login succeed before going on
369369
if "authentication failed" in response.body:
370-
self.log("Login failed", level=log.ERROR)
370+
self.log("Login failed", level=scrapy.log.ERROR)
371371
return
372372

373373
# continue scraping with authenticated session...

0 commit comments

Comments
 (0)