From 91c344d6d694ec5390d803ad245820f2f22df261 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 9 Apr 2012 20:01:31 -0400 Subject: [PATCH] Missed a Unicode bug --- earwigbot/tasks/afc_statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/tasks/afc_statistics.py b/earwigbot/tasks/afc_statistics.py index 72b7c30..79c7706 100644 --- a/earwigbot/tasks/afc_statistics.py +++ b/earwigbot/tasks/afc_statistics.py @@ -247,7 +247,7 @@ class Task(BaseTask): msg = u"Updating page [[{0}]] (id: {1}) @ {2}" self.logger.debug(msg.format(title, pageid, oldid)) self.logger.debug(" {0} -> {1}".format(oldid, real_oldid)) - base = result[0][1].replace("_", " ") + base = result[0][1].decode("utf8").replace("_", " ") ns = self.site.namespace_id_to_name(result[0][2]) if ns: real_title = u":".join((ns, base))