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:
|
||||
return False
|
||||
else:
|
||||
reg_key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, "Console")
|
||||
try:
|
||||
reg_key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, "Console")
|
||||
reg_key_value, _ = winreg.QueryValueEx(reg_key, "VirtualTerminalLevel")
|
||||
except FileNotFoundError:
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue