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

Fix for #646

parent 7cb842e1
......@@ -449,10 +449,14 @@ class RegistryInfo:
for hkey in self.HKEYS:
try:
bkey = winreg.OpenKey(hkey, key, 0, winreg.KEY_READ)
except OSError:
continue
except IOError:
continue
try:
return winreg.QueryValueEx(bkey, name)[0]
except OSError:
pass
except IOError:
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