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