Browse Source

Handle empty URLs from cached results correctly.

pull/24/head
Ben Kurtovic 10 years ago
parent
commit
c165e97fb2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      copyvios/checker.py

+ 1
- 1
copyvios/checker.py View File

@@ -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"



Loading…
Cancel
Save