From 09475d599232fbdd8130453870a80e7e774a4d1c Mon Sep 17 00:00:00 2001 From: Dave Lassalle Date: Fri, 15 Jun 2018 22:41:36 -0500 Subject: [PATCH] set default value for key since we combined exception handling --- volatility/plugins/windows/printkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility/plugins/windows/printkey.py b/volatility/plugins/windows/printkey.py index 153d17bb2..e2fddedfb 100644 --- a/volatility/plugins/windows/printkey.py +++ b/volatility/plugins/windows/printkey.py @@ -117,7 +117,7 @@ class PrintKey(plugins.PluginInterface): (renderers.UnreadableValue(), renderers.format_hints.Hex(hive.hive_offset), "Key", - self.config['key'], + self.config.get('key', "ROOT"), renderers.UnreadableValue(), renderers.UnreadableValue(), renderers.UnreadableValue()))