From 2f5d3b073d1fae0a145d4f91b6e3e52fd22da885 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 7 Nov 2021 10:13:09 +0530 Subject: [PATCH] Ignore exceptions in the environment modifier --- kitty/shell_integration.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kitty/shell_integration.py b/kitty/shell_integration.py index b991e94cb..0e50df9ca 100644 --- a/kitty/shell_integration.py +++ b/kitty/shell_integration.py @@ -129,5 +129,10 @@ def modify_shell_environ(argv0: str, opts: Options, env: Dict[str, str]) -> None return f = ENV_MODIFIERS.get(shell) if f is not None: - f(env) + try: + f(env) + except Exception: + import traceback + traceback.print_exc() + log_error(f'Failed to setup shell integration for: {shell}') return