Merge pull request #622 from volatilityfoundation/issues/issue616

Plugins: yara python module check improvement
This commit is contained in:
ikelos
2022-01-18 21:00:33 +00:00
committed by GitHub
+4 -1
View File
@@ -15,8 +15,11 @@ vollog = logging.getLogger(__name__)
try:
import yara
if tuple([int(x) for x in yara.__version__.split('.')]) < (3, 8):
raise ImportError
except ImportError:
vollog.info("Python Yara module not found, plugin (and dependent plugins) not available")
vollog.info("Python Yara (>3.8.0) module not found, plugin (and dependent plugins) not available")
raise