mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 11:38:32 +02:00
clean up old code
This commit is contained in:
parent
c7c6ecfdf9
commit
0d823155d0
1 changed files with 9 additions and 4 deletions
|
@ -124,7 +124,7 @@ older versions of jrnl anymore.
|
||||||
|
|
||||||
cont = yesno("\nContinue upgrading jrnl?", default=False)
|
cont = yesno("\nContinue upgrading jrnl?", default=False)
|
||||||
if not cont:
|
if not cont:
|
||||||
raise JrnlException(JrnlExceptionMessage.UpgradeAborted)
|
raise JrnlException(Message(MsgText.UpgradeAborted), MsgType.WARNING)
|
||||||
|
|
||||||
for journal_name, path in encrypted_journals.items():
|
for journal_name, path in encrypted_journals.items():
|
||||||
print(
|
print(
|
||||||
|
@ -155,9 +155,14 @@ older versions of jrnl anymore.
|
||||||
print_msg("Aborting upgrade.", msg=Message.NORMAL)
|
print_msg("Aborting upgrade.", msg=Message.NORMAL)
|
||||||
|
|
||||||
raise JrnlException(
|
raise JrnlException(
|
||||||
JrnlExceptionMessage.JournalFailedUpgrade,
|
Message(
|
||||||
s="s" if len(failed_journals) > 1 else "",
|
MsgText.JournalFailedUpgrade,
|
||||||
failed_journals="\n".join(j.name for j in failed_journals),
|
MsgType.ERROR,
|
||||||
|
{
|
||||||
|
"s": "s" if len(failed_journals) > 1 else "",
|
||||||
|
"failed_journals": "\n".join(j.name for j in failed_journals),
|
||||||
|
},
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
# write all journals - or - don't
|
# write all journals - or - don't
|
||||||
|
|
Loading…
Add table
Reference in a new issue