Fix for some stories' summaries on onedirectionfanfiction.com.

This commit is contained in:
Jim Miller 2014-05-02 11:46:59 -05:00
parent 40bac62c5e
commit 1348525d25

View file

@ -192,7 +192,7 @@ class OneDirectionFanfictionComAdapter(BaseSiteAdapter):
if 'Summary' in label:
## Everything until the next span class='label'
svalue = ""
while not defaultGetattr(value,'class') == 'label':
while value and not defaultGetattr(value,'class') == 'label':
svalue += str(value)
value = value.nextSibling
self.setDescription(url,svalue)