From b90e5e7279c8b1a5d1ebcb5bcfeb4021c2c35d32 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 1 Sep 2014 23:54:50 -0500 Subject: [PATCH] Fix logic. --- copyvios/checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyvios/checker.py b/copyvios/checker.py index ca0c569..ca96932 100644 --- a/copyvios/checker.py +++ b/copyvios/checker.py @@ -129,7 +129,7 @@ def _get_cached_results(page, conn, query, mode): def _do_copyvio_compare(query, page, url): result = page.copyvio_compare(url, min_confidence=T_SUSPECT, max_time=30) - if url and result.source_chain is not EMPTY: + if not url or result.source_chain is not EMPTY: return result query.error = "timeout" if result.time > 30 else "no data"