Sfoglia il codice sorgente

Fix unicode bug in exception.

tags/v0.2
Ben Kurtovic 9 anni fa
parent
commit
9eaad11efb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      earwigbot/wiki/site.py

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

@@ -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):


Caricamento…
Annulla
Salva