mirror of https://github.com/scrapy/scrapy.git
Removed unnecesary check in RobustScrapedItem's getattr
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40375
This commit is contained in:
parent
4afa29b26a
commit
fab0e6938c
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue