Skip to content

Commit

Permalink
⚠️ raise SystemError if Python environment version is lower than 3.12
Browse files Browse the repository at this point in the history
Fixes #17
  • Loading branch information
gy-mate committed Dec 18, 2024
1 parent 5d1f466 commit 2bfb74c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/moodle_to_vikwikiquiz/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...")
Expand Down

0 comments on commit 2bfb74c

Please sign in to comment.