mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 02:31:45 +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
|
return
|
||||||
f = ENV_MODIFIERS.get(shell)
|
f = ENV_MODIFIERS.get(shell)
|
||||||
if f is not None:
|
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
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user