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:
Luflosi
2019-06-06 17:45:32 +02:00
parent 4faf71bd03
commit d7dd9c295b

View File

@@ -11,7 +11,7 @@ from .utils import load_shaders
try:
from enum import IntFlag
except Exception:
except ImportError:
from enum import IntEnum as IntFlag