Adds warning message and fallback for exception handling in menu.py

This commit is contained in:
clothespin
2021-03-17 18:49:23 -07:00
parent 7d2d7a4db8
commit 081ea2818a

View File

@@ -19,4 +19,5 @@ try:
session = PromptSession(history=FileHistory(history_file))
set_eventloop_with_inputhook(inputhook)
except Exception as e: # noqa: F841
raise e
print("WARNING: Prompt toolkit is turned on but did not initialize succesfully. Falling back to input()...")
session = None