From e8e87bcb52ed0ab5939936e6e7ac979cbcd8ac9a Mon Sep 17 00:00:00 2001 From: elpolilla Date: Mon, 26 Jan 2009 16:20:58 +0000 Subject: [PATCH] Fixed small bug in adaptor pipelines that tried to work with None values --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40774 --- scrapy/trunk/scrapy/item/adaptors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/trunk/scrapy/item/adaptors.py b/scrapy/trunk/scrapy/item/adaptors.py index 1a037df6f..2a453f01f 100644 --- a/scrapy/trunk/scrapy/item/adaptors.py +++ b/scrapy/trunk/scrapy/item/adaptors.py @@ -73,7 +73,7 @@ class AdaptorPipe(list): val = adaptor(val, kwargs or {}) if isinstance(val, tuple): next_round.extend(val) - else: + elif val is not None: next_round.append(val) if self.debug: