mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 01:36:27 +00:00
More precise type in slugify dependency check
This commit is contained in:
committed by
darodi
parent
2256df0785
commit
7468512ec8
@@ -117,8 +117,9 @@ def dependencyCheck(level):
|
||||
except ImportError:
|
||||
missing.append('psutil 5.0.0+')
|
||||
try:
|
||||
from types import ModuleType
|
||||
from slugify import __version__ as slugifyVersion
|
||||
if not isinstance(slugifyVersion, str):
|
||||
if isinstance(slugifyVersion, ModuleType):
|
||||
slugifyVersion = slugifyVersion.__version__
|
||||
if StrictVersion('1.2.1') > StrictVersion(slugifyVersion):
|
||||
missing.append('python-slugify 1.2.1+')
|
||||
|
||||
Reference in New Issue
Block a user