mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 19:48:31 +02:00
clean up MsgText so value doesn't have to be used as much
This commit is contained in:
parent
85a45ab32c
commit
92065f6e8c
2 changed files with 4 additions and 2 deletions
|
@ -58,9 +58,9 @@ def get_text_from_stdin():
|
|||
MsgText.WritingEntryStart,
|
||||
MsgType.TITLE,
|
||||
{
|
||||
"how_to_quit": MsgText.HowToQuitWindows.value
|
||||
"how_to_quit": MsgText.HowToQuitWindows
|
||||
if on_windows()
|
||||
else MsgText.HowToQuitLinux.value
|
||||
else MsgText.HowToQuitLinux
|
||||
},
|
||||
)
|
||||
)
|
||||
|
|
|
@ -21,6 +21,8 @@ class MsgType(Enum):
|
|||
|
||||
|
||||
class MsgText(Enum):
|
||||
def __str__(self) -> str:
|
||||
return self.value
|
||||
|
||||
# --- Exceptions ---#
|
||||
UncaughtException = """
|
||||
|
|
Loading…
Add table
Reference in a new issue