clean up MsgText so value doesn't have to be used as much

This commit is contained in:
Jonathan Wren 2022-02-26 18:42:57 -08:00
parent 85a45ab32c
commit 92065f6e8c
2 changed files with 4 additions and 2 deletions

View file

@ -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
},
)
)

View file

@ -21,6 +21,8 @@ class MsgType(Enum):
class MsgText(Enum):
def __str__(self) -> str:
return self.value
# --- Exceptions ---#
UncaughtException = """