Add Python version check (#56)

This commit is contained in:
Kasherpete 2023-12-01 15:48:54 -06:00 committed by GitHub
parent e0795e8f72
commit 3591857334
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@ import json
import logging import logging
import os import os
import threading import threading
import platform
import time import time
import traceback import traceback
from base64 import b64decode, b64encode from base64 import b64decode, b64encode
@ -11,6 +12,11 @@ import datetime
from rich.logging import RichHandler from rich.logging import RichHandler
minor_version = int(platform.python_version().split('.')[1])
if minor_version < 10 or minor_version > 11:
raise Exception(f"Incompatible Python version '{platform.python_version()}'")
import apns import apns
import ids import ids
import imessage import imessage