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
No known key found for this signature in database
GPG Key ID: 14140F703B7D8362

View File

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