1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 06:48:49 +00:00

explicit error on wrong magic

This commit is contained in:
deadc0de6
2020-11-14 11:04:53 +01:00
parent 55a14b0762
commit 263d7f744f

View File

@@ -282,7 +282,8 @@ def dependencies_met():
except ImportError:
raise Exception(err.format('python-magic'))
if not hasattr(magic, 'from_file'):
raise Exception(err.format('python-magic'))
e = 'wrong magic module found'
raise Exception(e)
try:
from docopt import docopt
assert(docopt)