From c165e97fb2e41594370e5b71d2b65f484ee3ec83 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 1 Sep 2014 23:53:46 -0500 Subject: [PATCH] Handle empty URLs from cached results correctly. --- copyvios/checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyvios/checker.py b/copyvios/checker.py index 0ff2525..ca0c569 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 result.source_chain is not EMPTY: + if url and result.source_chain is not EMPTY: return result query.error = "timeout" if result.time > 30 else "no data"