Fixed #33580 -- Fixed crash when checking support for terminal colors on Wine.
Regression in f1585c54d0
.
This commit is contained in:
parent
1ea7e3157d
commit
5f9ad17201
|
@ -35,8 +35,8 @@ def supports_color():
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
reg_key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, "Console")
|
|
||||||
try:
|
try:
|
||||||
|
reg_key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, "Console")
|
||||||
reg_key_value, _ = winreg.QueryValueEx(reg_key, "VirtualTerminalLevel")
|
reg_key_value, _ = winreg.QueryValueEx(reg_key, "VirtualTerminalLevel")
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue