mirror of https://github.com/MISP/misp-modules
fix: Fixed exception type for python 3.5
parent
a18db2ed1d
commit
cfbd63f14e
|
@ -2,7 +2,7 @@ import json
|
|||
import requests
|
||||
try:
|
||||
import yara
|
||||
except (OSError, ModuleNotFoundError):
|
||||
except (OSError, ImportError):
|
||||
print("yara is missing, use 'pip3 install yara' to install it.")
|
||||
|
||||
misperrors = {'error': 'Error'}
|
||||
|
|
Loading…
Reference in New Issue