Skip to content

Commit

Permalink
Add a friendly message for Python version requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilXD committed Sep 11, 2024
1 parent 8704c4f commit 990a585
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@

warnings.simplefilter("default", ResourceWarning)

if sys.version_info < (3, 10):
raise RuntimeError("Python 3.10 or higher is required")

class Parser(argparse.ArgumentParser):
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
Expand Down

0 comments on commit 990a585

Please sign in to comment.