From 81d5ba6c21c7616db0b61acb045b3fa17823ecf2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 4 Aug 2026 11:35:50 +0530 Subject: [PATCH] ... --- kitty/shaders/slang.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kitty/shaders/slang.py b/kitty/shaders/slang.py index 9b67cd0f8..ef0a5f2c1 100644 --- a/kitty/shaders/slang.py +++ b/kitty/shaders/slang.py @@ -253,16 +253,16 @@ class LoadShaderPrograms: for k in self.custom_shaders: try: d = parse_pipeline(k) - except FileNotFoundError as e: + except FileNotFoundError: try: custom_shader(k) - except Exception: + except Exception as e: log_error(f'Failed to read custom shader pipeline definition from {k} with error: {e}') continue try: d = parse_pipeline_definition(['startgroup', f' shaders {k}', 'endgroup']) - except Exception as e2: - log_error(f'Failed to build minimal shader pipeline for {k} with error: {e2}') + except Exception as e: + log_error(f'Failed to build minimal shader pipeline for {k} with error: {e}') continue except Exception as e: log_error(f'Failed to read custom shader pipeline definition from {k} with error: {e}')