Do not try to run code requiring lief

pull/111/head
Raphaël Vinot 2017-08-25 17:41:58 +02:00
parent 9ff3739753
commit a5531990ae
1 changed files with 21 additions and 20 deletions

View File

@ -45,6 +45,7 @@ def make_macho_objects(lief_parsed, misp_file):
def make_binary_objects(filepath): def make_binary_objects(filepath):
misp_file = FileObject(filepath) misp_file = FileObject(filepath)
if HAS_LIEF:
try: try:
lief_parsed = lief.parse(filepath) lief_parsed = lief.parse(filepath)
if isinstance(lief_parsed, lief.PE.Binary): if isinstance(lief_parsed, lief.PE.Binary):