From 0e0f1678918f0a53954647056ca4fb242a54e7a1 Mon Sep 17 00:00:00 2001 From: apainintheneck Date: Sat, 30 Apr 2022 13:12:13 -0700 Subject: [PATCH] Leave partially written to files after export error --- jrnl/plugins/text_exporter.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/jrnl/plugins/text_exporter.py b/jrnl/plugins/text_exporter.py index 1662b533a..4a5300df2 100644 --- a/jrnl/plugins/text_exporter.py +++ b/jrnl/plugins/text_exporter.py @@ -36,7 +36,6 @@ def write_file(cls, journal, path): except IOError as e: return f"[{ERROR_COLOR}ERROR{RESET_COLOR}: {e.filename} {e.strerror}]" except RuntimeError as e: - os.remove(path) return e @classmethod @@ -58,7 +57,6 @@ def write_files(cls, journal, path): e.filename, e.strerror, ERROR_COLOR, RESET_COLOR ) except RuntimeError as e: - os.remove(full_path) return e return "[Journal exported to {}]".format(path)