Skip to content

Commit

Permalink
Fix retrieving the root registry key
Browse files Browse the repository at this point in the history
  • Loading branch information
Schamper committed Aug 7, 2023
1 parent 051a2b5 commit 04f7af0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dissect/target/plugins/os/windows/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import warnings
from collections import defaultdict
from functools import lru_cache
from typing import Iterator, Optional, Union
from typing import Iterator, Union

from dissect.target.exceptions import HiveUnavailableError, RegistryKeyNotFoundError
from dissect.target.helpers.fsutil import TargetPath
Expand Down Expand Up @@ -204,7 +204,7 @@ def root(self) -> KeyCollection:

@internal
@lru_cache(4096)
def key(self, key: Optional[str] = None) -> KeyCollection:
def key(self, key: str = "") -> KeyCollection:
"""Query the virtual registry on the given key.
Returns a KeyCollection which contains all keys that match
Expand Down

0 comments on commit 04f7af0

Please sign in to comment.