Update volatility3/cli/__init__.py

Co-authored-by: Donghyun Kim <digitalisx99@gmail.com>
This commit is contained in:
ikelos
2022-05-30 01:53:07 +01:00
committed by GitHub
co-authored by Donghyun Kim
parent 9ea1a960cd
commit 2e4c257e15
+2 -1
View File
@@ -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'))