Exit when version is not supported

This commit is contained in:
rocky
2023-06-15 21:32:17 -04:00
parent 41d26bde79
commit b0086460de
3 changed files with 3 additions and 2 deletions

View File

@@ -94,6 +94,7 @@ class Token:
else:
if version_tuple > (3, 9):
print("Python versions 3.9 and greater are not supported.")
sys.exit(1)
else:
print(f"xdis might need to be informed about version {e}")
return

View File

@@ -1,5 +1,5 @@
#
# (C) Copyright 2015-2018, 2020-2021 by Rocky Bernstein
# (C) Copyright 2015-2018, 2020-2021, 2023 by Rocky Bernstein
# (C) Copyright 2000-2002 by hartmut Goebel <h.goebel@crazy-compilers.com>
#
# This program is free software: you can redistribute it and/or modify