From 9eaad11efb4f28ac936cce7f37cd8f1c9a3a756a Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 18 Oct 2014 18:29:45 -0500 Subject: [PATCH] Fix unicode bug in exception. --- earwigbot/wiki/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/wiki/site.py b/earwigbot/wiki/site.py index a3ebe52..8a0107e 100644 --- a/earwigbot/wiki/site.py +++ b/earwigbot/wiki/site.py @@ -844,7 +844,7 @@ class Site(object): if lname in lnames: return ns_id - e = "There is no namespace with name '{0}'.".format(name) + e = u"There is no namespace with name '{0}'.".format(name) raise exceptions.NamespaceNotFoundError(e) def get_page(self, title, follow_redirects=False, pageid=None):