From fa27b99970a09adc6a6f7b334082c7f1514ac865 Mon Sep 17 00:00:00 2001 From: Pavel Valach Date: Tue, 2 Feb 2021 11:33:39 +0100 Subject: [PATCH] larger timeout for ModemManager to find the modem --- sms_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sms_functions.py b/sms_functions.py index 3834b35..ab8fb10 100644 --- a/sms_functions.py +++ b/sms_functions.py @@ -92,7 +92,7 @@ def send_sms(recipients, smsstring): except: retries += 1 time.sleep(1) - if retries > 5: + if retries > 15: raise # test sending SMS