mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-21 11:39:57 +03: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
@ -11,7 +11,7 @@
|
||||
|
||||
try:
|
||||
from enum import IntFlag
|
||||
except Exception:
|
||||
except ImportError:
|
||||
from enum import IntEnum as IntFlag
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user