diff --git a/earwigbot/wiki/copyvios/__init__.py b/earwigbot/wiki/copyvios/__init__.py index 55b9f91..5e5dc2f 100644 --- a/earwigbot/wiki/copyvios/__init__.py +++ b/earwigbot/wiki/copyvios/__init__.py @@ -110,7 +110,8 @@ class CopyvioMixIn(object): """ html = self._open_url_ignoring_errors(url) if not html: - return 0, () + empty = MarkovChain("") + return 0, (empty, MarkovChainIntersection(empty, empty)) source = MarkovChain(HTMLTextParser(html).strip()) delta = MarkovChainIntersection(article, source)