From 207c33a6f428958a222d356601b7bf27fc3b8d6e Mon Sep 17 00:00:00 2001 From: Kasherpete <119694008+Kasherpete@users.noreply.github.com> Date: Sat, 23 Sep 2023 22:39:17 -0500 Subject: [PATCH] Update sms_registration.py --- sms_registration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sms_registration.py b/sms_registration.py index 03ca084..80233d6 100644 --- a/sms_registration.py +++ b/sms_registration.py @@ -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()