Browse Source

Fix unicode bug in exception.

tags/v0.2
Ben Kurtovic 10 years ago
parent
commit
9eaad11efb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/wiki/site.py

+ 1
- 1
earwigbot/wiki/site.py View File

@@ -844,7 +844,7 @@ class Site(object):
if lname in lnames: if lname in lnames:
return ns_id 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) raise exceptions.NamespaceNotFoundError(e)


def get_page(self, title, follow_redirects=False, pageid=None): def get_page(self, title, follow_redirects=False, pageid=None):


Loading…
Cancel
Save