mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 11:38:32 +02:00
Leave partially written to files after export error
This commit is contained in:
parent
d27b95b963
commit
0e0f167891
1 changed files with 0 additions and 2 deletions
|
@ -36,7 +36,6 @@ class TextExporter:
|
|||
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 @@ class TextExporter:
|
|||
e.filename, e.strerror, ERROR_COLOR, RESET_COLOR
|
||||
)
|
||||
except RuntimeError as e:
|
||||
os.remove(full_path)
|
||||
return e
|
||||
return "[Journal exported to {}]".format(path)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue