瀏覽代碼

Follow redirects.

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
76b7ec2c5d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      earwigbot/commands/dictionary.py

+ 1
- 1
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):


Loading…
取消
儲存