Registry: Fix error message

This commit is contained in:
Mike Auty
2020-07-28 20:49:53 +01:00
parent 54b62709d1
commit 123e9bc8a3
+1 -1
View File
@@ -154,7 +154,7 @@ class RegistryHive(linear.LinearlyMappedLayer):
else:
node_key = []
if not node_key:
raise KeyError("Key {} not found under {}", key_array[0], '\\'.join(found_key))
raise KeyError("Key {} not found under {}".format(key_array[0], '\\'.join(found_key)))
if return_list:
return node_key
return node_key[-1]