diff --git a/main.py b/main.py index 6c17598c..2338517b 100644 --- a/main.py +++ b/main.py @@ -27,16 +27,16 @@ if helper.check_root(): time.sleep(5) Console.critical("Crafty shutting down. Root/Admin access denied.") 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( "Python version mismatch. Python " - f"{sys.version_info.major}.{sys.version_info.minor} detected" - "Crafty requires Python 3.9 or above. Please upgrade python." + f"{sys.version_info.major}.{sys.version_info.minor} detected." ) + Console.critical("Crafty requires Python 3.9 or above. Please upgrade python.") time.sleep(5) Console.critical("Crafty shutting down.") time.sleep(3) - Console.info("Stopping Crafty.") + Console.info("Crafty stopped. Exiting...") sys.exit(0) # pylint: disable=wrong-import-position try: