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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user