Skip to content

Commit

Permalink
feat: bump winregistry version
Browse files Browse the repository at this point in the history
  • Loading branch information
A.Shpak committed Dec 14, 2024
1 parent 911ef23 commit 81e7043
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions machineid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ def __read__(path: str) -> str:
return None

def __reg__(key_name: str, value_name: str) -> str:
if winregistry is None:
return None
try:
with winregistry.open_value(key_name, value_name) as reg:
if reg.data and isinstance(reg.data, str):
Expand Down

0 comments on commit 81e7043

Please # to comment.