mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-08 02:37:39 +02:00
Update volatility3/cli/__init__.py
Co-authored-by: Donghyun Kim <digitalisx99@gmail.com>
This commit is contained in:
@@ -388,7 +388,8 @@ class CommandLine:
|
||||
|
||||
# Process it if the files exist
|
||||
if os.path.exists(default_config_path):
|
||||
result = json.load(open(default_config_path, 'rb'))
|
||||
with open(default_config_path, 'rb') as config_json:
|
||||
result = json.load(config_json)
|
||||
if not isinstance(result, dict):
|
||||
delayed_logs.append((logging.INFO,
|
||||
f'Default configuration file {default_config_path} does not contain a dictionary'))
|
||||
|
||||
Reference in New Issue
Block a user