diff --git a/earwigbot/wiki/copyvios/__init__.py b/earwigbot/wiki/copyvios/__init__.py index a20a222..c6ebfc6 100644 --- a/earwigbot/wiki/copyvios/__init__.py +++ b/earwigbot/wiki/copyvios/__init__.py @@ -130,9 +130,9 @@ class CopyvioMixIn(object): if not no_links: workspace.enqueue(parser.get_links(), exclude) + num_queries = 0 if not no_searches: chunks = parser.chunk(self._search_config["nltk_dir"], max_queries) - num_queries = 0 for chunk in chunks: if workspace.best.confidence >= min_confidence: break