1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-03-13 19:24:46 +00:00
scrapy/tests/pipelines.py

19 lines
291 B
Python
Raw Normal View History

"""
2016-11-08 13:30:51 +01:00
Some pipelines used for testing
"""
2020-03-16 16:12:46 -03:00
class ZeroDivisionErrorPipeline:
def open_spider(self, spider):
2020-05-11 13:50:34 -03:00
1 / 0
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