diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2024-11-17 17:05:00 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2024-11-17 17:05:00 +1300 |
commit | f9696cb9c9b8719f12489a2602d735b055eff3f4 (patch) | |
tree | c436d3b1d0a48710333fff37408f3ba234cd016a | |
parent | Set encoding explicitly from locale (diff) | |
download | vixf-f9696cb9c9b8719f12489a2602d735b055eff3f4.tar.gz vixf-f9696cb9c9b8719f12489a2602d735b055eff3f4.zip |
Bail out if the editor process exits non-zero
-rw-r--r-- | vixf.py3 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -56,7 +56,7 @@ with tempfile.NamedTemporaryFile(mode='w', delete_on_close=False) as tf: editor, tf.name, ] - subprocess.run(command) + subprocess.run(command, check=True) encoding = locale.getpreferredencoding() with open(tf.name, mode='r', encoding=encoding) as tfr: |