Fixed an issue with Newznab hanging

This commit is contained in:
Remy
2011-07-17 01:54:03 -07:00
parent 803a924782
commit fc7e1a55e0

View File

@@ -87,7 +87,10 @@ def searchNZB(albumid=None):
searchURL = headphones.NEWZNAB_HOST + '/api?' + urllib.urlencode(params)
logger.info(u"Parsing results from "+searchURL)
d = feedparser.parse(searchURL)
try:
d = feedparser.parse(searchURL)
except Exception, e:
logger.error('Error parsing data from ' + headphones.NEWZNAB_HOST + ' : ' + str(e))
for item in d.entries:
try: