mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Ignore exceptions in the environment modifier
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user