Skip to content

Commit

Permalink
Leave partially written to files after export error
Browse files Browse the repository at this point in the history
  • Loading branch information
apainintheneck committed Apr 30, 2022
1 parent d27b95b commit 0e0f167
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions jrnl/plugins/text_exporter.py
Expand Up @@ -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
Expand All @@ -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)

Expand Down

0 comments on commit 0e0f167

Please sign in to comment.