From 2bfb74c80ea582d6552d4a30fef0916043bf5d63 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/moodle_to_vikwikiquiz/main.py b/src/moodle_to_vikwikiquiz/main.py index cecebf3..5484120 100644 --- a/src/moodle_to_vikwikiquiz/main.py +++ b/src/moodle_to_vikwikiquiz/main.py @@ -18,6 +18,10 @@ 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...")