mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-05 17:27:38 +02:00
Merge pull request #622 from volatilityfoundation/issues/issue616
Plugins: yara python module check improvement
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user