Update sms_registration.py

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

View file

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