mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix logic and messaging
This commit is contained in:
parent
ea9fec9971
commit
1855368e06
8
main.py
8
main.py
@ -27,16 +27,16 @@ if helper.check_root():
|
|||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
Console.critical("Crafty shutting down. Root/Admin access denied.")
|
Console.critical("Crafty shutting down. Root/Admin access denied.")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
if not sys.version_info.major == 3 and sys.version_info.minor >= 9:
|
if not (sys.version_info.major == 3 and sys.version_info.minor >= 9):
|
||||||
Console.critical(
|
Console.critical(
|
||||||
"Python version mismatch. Python "
|
"Python version mismatch. Python "
|
||||||
f"{sys.version_info.major}.{sys.version_info.minor} detected"
|
f"{sys.version_info.major}.{sys.version_info.minor} detected."
|
||||||
"Crafty requires Python 3.9 or above. Please upgrade python."
|
|
||||||
)
|
)
|
||||||
|
Console.critical("Crafty requires Python 3.9 or above. Please upgrade python.")
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
Console.critical("Crafty shutting down.")
|
Console.critical("Crafty shutting down.")
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
Console.info("Stopping Crafty.")
|
Console.info("Crafty stopped. Exiting...")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
# pylint: disable=wrong-import-position
|
# pylint: disable=wrong-import-position
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user