From d7dd9c295bdfb995032a3a4b12690ba29a3b0758 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Thu, 6 Jun 2019 17:45:32 +0200 Subject: [PATCH] Use more specific exception I think it's better to use `ImportError` here instead of the much more generic `Exception`. --- kitty/borders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/borders.py b/kitty/borders.py index 5245f9832..0c9a44e3b 100644 --- a/kitty/borders.py +++ b/kitty/borders.py @@ -11,7 +11,7 @@ from .utils import load_shaders try: from enum import IntFlag -except Exception: +except ImportError: from enum import IntEnum as IntFlag