mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-26 07:08:04 +00:00
Add a friendly message for Python version requirement
This commit is contained in:
3
main.py
3
main.py
@@ -31,6 +31,9 @@ if __name__ == "__main__":
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user