Private GIT

Skip to content
Snippets Groups Projects
Commit 555754cf authored by Patrick Vos's avatar Patrick Vos
Browse files

Fix keywords search Exception for adding new shows

While the new keyword search breaks the searchterm into elements to find more shows,
it returns nothing when one of the elements throws an Exception.
parent 2870998c
Branches
Tags
No related merge requests found
......@@ -1581,12 +1581,13 @@ class NewHomeAddShows:
try:
seriesXML = etree.ElementTree(etree.XML(urlData))
except Exception, e:
logger.log(u"Unable to parse XML for some reason: "+ex(e)+" from XML: "+urlData, logger.ERROR)
return ''
series = seriesXML.getiterator('Series')
except Exception, e:
# use finalURL in log, because urlData can be too much information
logger.log(u"Unable to parse XML for some reason: "+ex(e)+" from XML: "+finalURL, logger.ERROR)
series = ''
# add each result to our list
for curSeries in series:
tvdb_id = int(curSeries.findtext('seriesid'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment