Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Wrong attribute assignation fixed again

elpolillaa2461fbeeada
diff --git a/scrapy/trunk/scrapy/item/models.py b/scrapy/trunk/scrapy/item/models.py
index aa58c6f15..00638c977 100644
--- a/scrapy/trunk/scrapy/item/models.py
+++ b/scrapy/trunk/scrapy/item/models.py
@@ -24,7 +24,7 @@ class ScrapedItem(object):
def attribute(self, attrname, value, override=False, add=False, debug=False):
val = self._adaptors_dict.execute(attrname, value, debug)
- if not val is None:
+ if val or val is False:
curr_val = getattr(self, attrname, None)
if not curr_val:
setattr(self, attrname, val)