Skip to content

Commit

Permalink
Changes for handling missing key in regf.GetSubkeyByName (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz authored Dec 5, 2021
1 parent 501fff8 commit 6b0cdd9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/dpkg/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dfwinreg (20201231-1) unstable; urgency=low
dfwinreg (20211205-1) unstable; urgency=low

* Auto-generated

-- Log2Timeline maintainers <[email protected]> Thu, 31 Dec 2020 09:03:53 +0100
-- Log2Timeline maintainers <[email protected]> Sun, 05 Dec 2021 14:36:03 +0100
2 changes: 1 addition & 1 deletion dfwinreg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
that provides read-only access to Windows Registry objects.
"""

__version__ = '20201231'
__version__ = '20211205'
2 changes: 1 addition & 1 deletion dfwinreg/regf.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def GetSubkeyByName(self, name):
name = 'CurrentControlSet'
else:
pyregf_key = self._pyregf_key.get_sub_key_by_name(name)
name = pyregf_key.name
name = getattr(pyregf_key, 'name', None)

if not pyregf_key:
return None
Expand Down

0 comments on commit 6b0cdd9

Please sign in to comment.