1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-23 06:04:07 +00:00
scrapy/tests/pipelines.py
2018-07-03 16:00:59 -03:00

18 lines
306 B
Python

"""
Some pipelines used for testing
"""
class ZeroDivisionErrorPipeline(object):
def open_spider(self, spider):
a = 1/0
def process_item(self, item, spider):
return item
class ProcessWithZeroDivisionErrorPipiline(object):
def process_item(self, item, spider):
1/0