mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 20:52:19 +00:00
Use more specific exception
I think it's better to use `ImportError` here instead of the much more generic `Exception`.
This commit is contained in:
parent
4faf71bd03
commit
d7dd9c295b
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ from .utils import load_shaders
|
|||
|
||||
try:
|
||||
from enum import IntFlag
|
||||
except Exception:
|
||||
except ImportError:
|
||||
from enum import IntEnum as IntFlag
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue