Sfoglia il codice sorgente

Follow redirects.

tags/v0.1^2
Ben Kurtovic 12 anni fa
parent
commit
76b7ec2c5d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      earwigbot/commands/dictionary.py

+ 1
- 1
earwigbot/commands/dictionary.py Vedi File

@@ -51,7 +51,7 @@ class Dictionary(Command):
except exceptions.SiteNotFoundError:
site = self.bot.wiki.add_site(project="wiktionary", lang=lang)

page = site.get_page(term)
page = site.get_page(term, follow_redirects=True)
try:
entry = page.get()
except (exceptions.PageNotFoundError, exceptions.InvalidPageError):


Caricamento…
Annulla
Salva