Ignore exceptions in the environment modifier
This commit is contained in:
parent
4c0a7a9566
commit
2f5d3b073d
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue