Update sms_registration.py

This commit is contained in:
Kasherpete 2023-09-23 22:39:17 -05:00 committed by GitHub
parent 1b9cc37000
commit 207c33a6f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,8 +20,9 @@ def register(push_token: bytes, no_parse = False, gateway = None) -> tuple[str,
print("MCC+MNC received! " + mccmnc)
print("Determining gateway...")
gateway = gateway_fetch.getGatewayMCCMNC(mccmnc)
if gateway is not None:
print("Gateway found! " + str(gateway))
if gateway is None:
else:
print("Automatic gateway detection failed, switching to default...")
gateway = GATEWAY
token = push_token.hex().upper()