From 76529ea85180583dfe01e836c2c10ffc1a30903c Mon Sep 17 00:00:00 2001 From: Remy Date: Tue, 9 Aug 2011 12:10:43 -0700 Subject: [PATCH] Fixed exception being referenced before assignment in searcher/getresultNZB --- headphones/searcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index 333b12eb..ded3ee5d 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -453,7 +453,7 @@ def getresultNZB(result): else: try: nzb = urllib2.urlopen(result[2], timeout=20).read() - except: + except Exception, e: logger.warn('Error fetching nzb from url: ' + result[2] + ' %s' % e) return nzb