Skip to content

Commit 049fe5b

Browse files
committed
⚠️ raise SystemError if Python environment version is lower than 3.12
Fixes #17
1 parent 5d1f466 commit 049fe5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/moodle_to_vikwikiquiz/main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818

1919

2020
def main() -> None:
21+
# future: remove the conditional below when https://github.com/linkedin/shiv/issues/268 is fixed
22+
if version_info < (3, 12):
23+
raise SystemError(
24+
"This app requires Python 3.12 or later. Please upgrade it from https://www.python.org/downloads/!"
25+
)
26+
2127
args = parse_arguments()
2228
configure_logging(args.verbose)
2329
logging.getLogger(__name__).debug("Program started...")

0 commit comments

Comments
 (0)