Expected exception
Package:
scrapy
41445

Exception Class:
self.exception_cls
Raise code
class ErrorSpider(FollowAllSpider):
name = 'error'
exception_cls = DefaultError
def raise_exception(self):
raise self.exception_cls('Expected exception')
def parse(self, response):
for request in super().parse(response):
yield request
self.raise_exception()
Links to the raise (1)
https://github.com/scrapy/scrapy/blob/ee682af3b06d48815dbdaa27c1177b94aaf679e1/tests/spiders.py#L225See also in the other packages (1)
(✅️ Fixed)
requests/expected-exception/
NO FIXES YET
Just press the button and we will add solution
to this exception as soon as possible
* As many users press the button, the faster we create a fix
Add a possible fix
Please authorize to post fix