From 2183ce49b810072c7acff76bc66f85fc0dec3a2c Mon Sep 17 00:00:00 2001 From: Remy Date: Wed, 10 Aug 2011 16:20:51 -0700 Subject: [PATCH] Fixed UnboundLocalError/nzb referenced before assignment --- headphones/searcher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/headphones/searcher.py b/headphones/searcher.py index c08ed287..d2a76fc2 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -453,6 +453,9 @@ def verifyresult(title, term): return True def getresultNZB(result): + + nzb = None + if result[3] == 'newzbin': params = urllib.urlencode({"username": headphones.NEWZBIN_UID, "password": headphones.NEWZBIN_PASSWORD, "reportid": result[2]}) url = "https://www.newzbin.com" + "/api/dnzb/"