瀏覽代碼

Fix dependency checking for search engines.

tags/v0.3
Ben Kurtovic 8 年之前
父節點
當前提交
7853bcc0f3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      earwigbot/wiki/copyvios/__init__.py

+ 2
- 2
earwigbot/wiki/copyvios/__init__.py 查看文件

@@ -71,8 +71,8 @@ class CopyvioMixIn(object):

for dep in klass.requirements():
try:
__import__(dep).__package__
except ImportError:
__import__(dep).__name__
except (ImportError, AttributeError):
e = "Missing a required dependency ({}) for the {} engine"
e = e.format(dep, engine)
raise exceptions.UnsupportedSearchEngineError(e)


Loading…
取消
儲存