Sfoglia il codice sorgente

Fix dependency checking for search engines.

tags/v0.3
Ben Kurtovic 8 anni fa
parent
commit
7853bcc0f3
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      earwigbot/wiki/copyvios/__init__.py

+ 2
- 2
earwigbot/wiki/copyvios/__init__.py Vedi File

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


Caricamento…
Annulla
Salva