From e3987049e6b700e9270c8340e5163dd981750482 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Sat, 20 Oct 2012 22:19:36 -0300 Subject: [PATCH] Better logging when Headphones can't parse the best nzb --- headphones/searcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index 5a7b1302..22737fe1 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -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: