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