mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-12 03:29:10 +02: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:
@@ -11,7 +11,7 @@ from .utils import load_shaders
|
||||
|
||||
try:
|
||||
from enum import IntFlag
|
||||
except Exception:
|
||||
except ImportError:
|
||||
from enum import IntEnum as IntFlag
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user