From 049fe5bbd3efa1210aff245ec5f818eb93412827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Gy=C3=B6ngy=C3=B6si?= Date: Wed, 18 Dec 2024 20:44:15 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A0=EF=B8=8F=20raise=20SystemError=20if?= =?UTF-8?q?=20Python=20environment=20version=20is=20lower=20than=203.12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #17 --- src/moodle_to_vikwikiquiz/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/moodle_to_vikwikiquiz/main.py b/src/moodle_to_vikwikiquiz/main.py index cecebf3..edfd0e5 100644 --- a/src/moodle_to_vikwikiquiz/main.py +++ b/src/moodle_to_vikwikiquiz/main.py @@ -18,6 +18,12 @@ def main() -> None: + # future: remove the conditional below when https://github.com/linkedin/shiv/issues/268 is fixed + if version_info < (3, 12): + raise SystemError( + "This app requires Python 3.12 or later. Please upgrade it from https://www.python.org/downloads/!" + ) + args = parse_arguments() configure_logging(args.verbose) logging.getLogger(__name__).debug("Program started...")