Skip to content

Commit ebc1231

Browse files
committed
feat: require Python 3.10+ with a clear error message on older versions
1 parent c60eba1 commit ebc1231

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎wa_media_archiver.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
import sys
2+
if sys.version_info < (3, 10):
3+
print(
4+
f"ERROR: Python 3.10 or higher is required "
5+
f"(you are running {sys.version.split()[0]}).\n"
6+
" Download the latest Python from https://www.python.org/downloads/",
7+
file=sys.stderr,
8+
)
9+
sys.exit(1)
10+
111
import atexit
212
import argparse
313
import contextlib

0 commit comments

Comments
 (0)