mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 07:44:16 +00:00
explicit error on wrong magic
This commit is contained in:
@@ -282,7 +282,8 @@ def dependencies_met():
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
raise Exception(err.format('python-magic'))
|
raise Exception(err.format('python-magic'))
|
||||||
if not hasattr(magic, 'from_file'):
|
if not hasattr(magic, 'from_file'):
|
||||||
raise Exception(err.format('python-magic'))
|
e = 'wrong magic module found'
|
||||||
|
raise Exception(e)
|
||||||
try:
|
try:
|
||||||
from docopt import docopt
|
from docopt import docopt
|
||||||
assert(docopt)
|
assert(docopt)
|
||||||
|
|||||||
Reference in New Issue
Block a user