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}')