2016-11-08 11:35:42 +01:00
|
|
|
"""
|
2016-11-08 13:30:51 +01:00
|
|
|
Some pipelines used for testing
|
2016-11-08 11:35:42 +01:00
|
|
|
"""
|
|
|
|
|
2019-11-18 17:16:09 +01:00
|
|
|
|
2020-03-16 16:12:46 -03:00
|
|
|
class ZeroDivisionErrorPipeline:
|
2016-11-08 11:35:42 +01:00
|
|
|
|
|
|
|
def open_spider(self, spider):
|
2020-05-11 13:50:34 -03:00
|
|
|
1 / 0
|
2016-11-08 11:35:42 +01:00
|
|
|
|
|
|
|
def process_item(self, item, spider):
|
|
|
|
return item
|
2018-07-04 03:00:59 +08:00
|
|
|
|
|
|
|
|
2020-03-16 16:12:46 -03:00
|
|
|
class ProcessWithZeroDivisionErrorPipiline:
|
2018-07-04 03:00:59 +08:00
|
|
|
|
|
|
|
def process_item(self, item, spider):
|
2020-02-20 16:32:58 +01:00
|
|
|
1 / 0
|