Ensure looking up recurse doesn't cause an exception.

This commit is contained in:
Mike Auty
2018-03-26 01:15:24 +01:00
parent 288d866dd3
commit 2c196c2d79
+1 -1
View File
@@ -76,7 +76,7 @@ class PrintKey(plugins.PluginInterface):
node.get_volatile()))
yield result
if self.config['recurse']:
if self.config.get('recurse', None):
for sub_node in node.get_subkeys():
if sub_node.vol.offset not in [x.vol.offset for x in node_path]:
yield from self.hive_walker(hive, node_path + [sub_node], key_path + "\\" + sub_node.get_name())