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 @@ from .utils import load_shaders
|
||||
|
||||
try:
|
||||
from enum import IntFlag
|
||||
except Exception:
|
||||
except ImportError:
|
||||
from enum import IntEnum as IntFlag
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user