1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 21:29:43 +00:00

ensure we have the correct magic (#289)

This commit is contained in:
deadc0de6
2020-11-12 20:53:52 +01:00
parent fc53ea23ce
commit 55a14b0762

View File

@@ -281,6 +281,8 @@ def dependencies_met():
assert(magic)
except ImportError:
raise Exception(err.format('python-magic'))
if not hasattr(magic, 'from_file'):
raise Exception(err.format('python-magic'))
try:
from docopt import docopt
assert(docopt)