Better logging when Headphones can't parse the best nzb

This commit is contained in:
rembo10
2012-10-20 22:19:36 -03:00
parent 4f1f05e12b
commit e3987049e6

View File

@@ -620,8 +620,8 @@ def preprocess(resultlist):
#TODO: Do we want rar checking in here to try to keep unknowns out?
#or at least the option to do so?
except ExpatError:
logger.error('Unable to parse the best result NZB. Skipping.')
except Exception, e:
logger.error('Unable to parse the best result NZB. Error: ' + str(e) + '. (Make sure your username/password/API is correct for provider: ' + result[3])
continue
return nzb, result
else: