From cec2d4b2c2b959389a9ce36e97682dd23ae6881d Mon Sep 17 00:00:00 2001 From: Viktor Stanchev Date: Thu, 12 Jun 2014 19:03:15 -0400 Subject: [PATCH] Revert "Do not negate check for string "No hits"" This reverts commit 71829f80345ddee446a2215b0f6e7ca552f9c8a9. --- pirate-get.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pirate-get.py b/pirate-get.py index 635e0cd..6185303 100755 --- a/pirate-get.py +++ b/pirate-get.py @@ -99,7 +99,7 @@ def main(): # check for a blocked mirror no_results = re.search(""""No hits\.""", res) - if found == [] and no_results is None: + if found == [] and not no_results is None: # Contradiction - we found no results, but the page didn't say there were no results # the page is probably not actually the pirate bay, so let's try another mirror raise Exception("Blocked mirror detected.")