Skip to content

Commit

Permalink
Update kingfisher_scrapy/pipelines.py
Browse files Browse the repository at this point in the history
Co-authored-by: Yohanna Lisnichuk <yohanitalisnichuk@gmail.com>
  • Loading branch information
aguilerapy and yolile committed Nov 10, 2020
1 parent 286200c commit 05b318e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kingfisher_scrapy/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def process_item(self, item, spider):

class Unflatten:
def process_item(self, item, spider):
if not spider.unflatten:
if not spider.unflatten or not isinstance(item, (File, FileItem)):
return item

input_name = item['file_name']
Expand Down

0 comments on commit 05b318e

Please sign in to comment.