Scrapy, a fast high-level web crawling & scraping framework for Python.
Removed unnecesary check in RobustScrapedItem's getattr
elpolillafab0e6938cfd
diff --git a/scrapy/trunk/scrapy/contrib/item/models.py b/scrapy/trunk/scrapy/contrib/item/models.pyindex 2cd5bb159..2832c9730 100644--- a/scrapy/trunk/scrapy/contrib/item/models.py+++ b/scrapy/trunk/scrapy/contrib/item/models.py@@ -59,7 +59,7 @@ class RobustScrapedItem(ScrapedItem):# Note that this method is called only when the attribute is not found in# self.__dict__ or the class/instance methods.if attr in self.ATTRIBUTES:- return () if hasattr(self.ATTRIBUTES[attr].attrib_type, '__iter__') else None+ return Noneelse:raise AttributeError(attr)