diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/bcd.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils/bcd.py b/src/utils/bcd.py index dc85cc3..c2a13a0 100644 --- a/src/utils/bcd.py +++ b/src/utils/bcd.py @@ -85,7 +85,11 @@ def _match_node_with_type_data(hive, entry_node): def disable_recovery_field(hive, entry_node): - recovery_node = get_node_child_from_path(hive, entry_node, f'Elements/{BCDEntryElement.RECOVERY_ENABLED.value}') + try: + recovery_node = get_node_child_from_path(hive, entry_node, f'Elements/{BCDEntryElement.RECOVERY_ENABLED.value}') + except: + logging.info("no Recovery entry is found, skipping") + return recovery_value = {'key': 'Element', 't': RegistryType.BINARY.value, 'value': b'\x00'} hive.node_set_value(recovery_node, recovery_value) |