From a18db2ed1d2985ef55a6fc4cf7161fbb74273ee9 Mon Sep 17 00:00:00 2001 From: chrisr3d Date: Fri, 7 Sep 2018 17:56:25 +0200 Subject: [PATCH] fix: Fixed exception type --- misp_modules/modules/expansion/yara_syntax_validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misp_modules/modules/expansion/yara_syntax_validator.py b/misp_modules/modules/expansion/yara_syntax_validator.py index 57c71ea..18e2de0 100644 --- a/misp_modules/modules/expansion/yara_syntax_validator.py +++ b/misp_modules/modules/expansion/yara_syntax_validator.py @@ -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'}