mirror of
https://github.com/1j01/textual-paint.git
synced 2024-09-11 23:57:12 +03:00
Narrow exception catching
This commit is contained in:
parent
ef107b0da3
commit
bae5eceb51
@ -199,7 +199,7 @@ def guess_editor() -> list[str | None]:
|
||||
for process_name in process_names:
|
||||
if process_name in output:
|
||||
return [COMMON_EDITORS_LINUX[process_name]]
|
||||
except Exception as e:
|
||||
except subprocess.CalledProcessError:
|
||||
pass
|
||||
|
||||
# Last resort, use old skool env vars
|
||||
|
Loading…
Reference in New Issue
Block a user