Commit ba535ea4 authored by J. Goutin's avatar J. Goutin Committed by GitHub

Fix for #646

parent 7cb842e1
...@@ -449,10 +449,14 @@ class RegistryInfo: ...@@ -449,10 +449,14 @@ class RegistryInfo:
for hkey in self.HKEYS: for hkey in self.HKEYS:
try: try:
bkey = winreg.OpenKey(hkey, key, 0, winreg.KEY_READ) bkey = winreg.OpenKey(hkey, key, 0, winreg.KEY_READ)
except OSError:
continue
except IOError: except IOError:
continue continue
try: try:
return winreg.QueryValueEx(bkey, name)[0] return winreg.QueryValueEx(bkey, name)[0]
except OSError:
pass
except IOError: except IOError:
pass pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment