Fix a TypeError in example code from exceptions.rst (#4068)

This commit is contained in:
Aleksey 2019-11-01 10:48:34 +02:00 committed by Adrián Chaves
parent da04fe0382
commit 06812f162e
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ CloseSpider
For example::
def parse_page(self, response):
if 'Bandwidth exceeded' in response.body:
if 'Bandwidth exceeded' in response.text:
raise CloseSpider('bandwidth_exceeded')
DontCloseSpider