From 2fa8aeba5bc461500e54a5ece4b57b8025c705b9 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 31 Aug 2014 18:10:31 -0500 Subject: [PATCH] Fix a blocking issue. --- earwigbot/wiki/copyvios/workers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/earwigbot/wiki/copyvios/workers.py b/earwigbot/wiki/copyvios/workers.py index e52a331..d22f854 100644 --- a/earwigbot/wiki/copyvios/workers.py +++ b/earwigbot/wiki/copyvios/workers.py @@ -255,8 +255,7 @@ class _CopyvioWorker(object): self._logger.debug("Exiting: got stop signal") return text = self._open_url(source) - if text: - source.workspace.compare(source, MarkovChain(text)) + source.workspace.compare(source, MarkovChain(text or "")) class CopyvioWorkspace(object):