update python deprecation message

This commit is contained in:
Jonathan Wren 2020-08-01 15:27:30 -07:00
parent 5455158ea0
commit 971deb387b

View file

@ -123,13 +123,14 @@ def run(manual_args=None):
"3.7" "3.7"
): ):
print( print(
f"""{WARNING_COLOR} f"""{ERROR_COLOR}
WARNING: Python versions below 3.7 will no longer be supported as of jrnl v2.5 ERROR: Python version {platform.python_version()} not supported.
(the next release). You are currently on Python {platform.python_version()}. Please update to
Python 3.7 (or higher) soon. Please update to Python 3.7 (or higher) in order to use jrnl.
{RESET_COLOR}""", {RESET_COLOR}""",
file=sys.stderr, file=sys.stderr,
) )
sys.exit(1)
if manual_args is None: if manual_args is None:
manual_args = sys.argv[1:] manual_args = sys.argv[1:]