Dont fail to start if running the shell to read the EDITOR env var fails

Fixes #1869
This commit is contained in:
Kovid Goyal
2019-07-31 06:37:17 +05:30
parent cc06104be6
commit 6958ded4c4
2 changed files with 10 additions and 0 deletions

View File

@@ -217,6 +217,9 @@ def read_shell_environment(opts):
k, v = line.partition('=')[::2]
if k and v:
ans[k] = v
else:
log_error('Failed to run shell to read its environment')
read_shell_environment.ans = {}
return read_shell_environment.ans