mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2025-01-09 17:33:47 +00:00
Update sms_registration.py
This commit is contained in:
parent
1b9cc37000
commit
207c33a6f4
1 changed files with 2 additions and 1 deletions
|
@ -20,8 +20,9 @@ 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)
|
||||||
|
if gateway is not None:
|
||||||
print("Gateway found! " + str(gateway))
|
print("Gateway found! " + str(gateway))
|
||||||
if gateway is None:
|
else:
|
||||||
print("Automatic gateway detection failed, switching to default...")
|
print("Automatic gateway detection failed, switching to default...")
|
||||||
gateway = GATEWAY
|
gateway = GATEWAY
|
||||||
token = push_token.hex().upper()
|
token = push_token.hex().upper()
|
||||||
|
|
Loading…
Reference in a new issue