From 065d9ea498adbb4bea85b3e28603c156ad3180a1 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 3 Oct 2014 16:11:55 -0500 Subject: [PATCH] Fix; should always return a float. --- earwigbot/wiki/copyvios/workers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/wiki/copyvios/workers.py b/earwigbot/wiki/copyvios/workers.py index c056594..f143117 100644 --- a/earwigbot/wiki/copyvios/workers.py +++ b/earwigbot/wiki/copyvios/workers.py @@ -290,7 +290,7 @@ class CopyvioWorkspace(object): d_size = float(delta.size) return max(conf_with_article_and_delta(self._article.size, d_size), - conf_with_delta(d_size), 0) + conf_with_delta(d_size), 0.0) def _finish_early(self): """Finish handling links prematurely (if we've hit min_confidence)."""