From fd5d937cc4625109673564cc0b9da37e4b99e079 Mon Sep 17 00:00:00 2001 From: sbuser Date: Wed, 10 Aug 2011 10:16:38 -0500 Subject: [PATCH] Fix for TypeError: object of type 'NoneType' has no len() in Newzbin results. --- headphones/searcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index c2070ee9..3f7e77ee 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -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):