Fix for TypeError: object of type 'NoneType' has no len() in Newzbin

results.
This commit is contained in:
sbuser
2011-08-10 10:16:38 -05:00
parent 957a7522df
commit fd5d937cc4

View File

@@ -304,7 +304,7 @@ def searchNZB(albumid=None, new=False):
items = d.getElementsByTagName("item")
except ExpatError:
logger.info('Unable to get the NEWZBIN feed. Check that your settings are correct - post a bug if they are')
items = None
items = []
if len(items):