浏览代码

Handle empty URLs from cached results correctly.

pull/24/head
Ben Kurtovic 10 年前
父节点
当前提交
c165e97fb2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      copyvios/checker.py

+ 1
- 1
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"



正在加载...
取消
保存