Removed unnecesary check in RobustScrapedItem's getattr

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40375
This commit is contained in:
elpolilla 2008-11-13 11:01:44 +00:00
parent 4afa29b26a
commit fab0e6938c
1 changed files with 1 additions and 1 deletions

View File

@ -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 None
else:
raise AttributeError(attr)