Skip to content

Commit 81e7043

Browse files
author
A.Shpak
committed
feat: bump winregistry version
1 parent 911ef23 commit 81e7043

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

machineid/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ def __read__(path: str) -> str:
6565
return None
6666

6767
def __reg__(key_name: str, value_name: str) -> str:
68+
if winregistry is None:
69+
return None
6870
try:
6971
with winregistry.open_value(key_name, value_name) as reg:
7072
if reg.data and isinstance(reg.data, str):

0 commit comments

Comments
 (0)