From 76b7ec2c5d4dcca88cc327ee70f9845e286b2d4e Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 7 Aug 2012 23:59:09 -0400 Subject: [PATCH] Follow redirects. --- earwigbot/commands/dictionary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/commands/dictionary.py b/earwigbot/commands/dictionary.py index 13f25a5..407f5f3 100644 --- a/earwigbot/commands/dictionary.py +++ b/earwigbot/commands/dictionary.py @@ -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):