Browse Source

Follow redirects.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
76b7ec2c5d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/commands/dictionary.py

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

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


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


Loading…
Cancel
Save