diff --git a/vwsfriend/requirements.txt b/vwsfriend/requirements.txt index 93e1f849..80b83896 100644 --- a/vwsfriend/requirements.txt +++ b/vwsfriend/requirements.txt @@ -1,4 +1,4 @@ -weconnect[Images]~=0.58.0 +weconnect[Images]~=0.58.2 HAP-python[QRCode]~=4.7.1 pypng~=0.20220715.0 sqlalchemy~=2.0.19 diff --git a/vwsfriend/vwsfriend/vwsfriend_base.py b/vwsfriend/vwsfriend/vwsfriend_base.py index 244e67c9..465966ea 100644 --- a/vwsfriend/vwsfriend/vwsfriend_base.py +++ b/vwsfriend/vwsfriend/vwsfriend_base.py @@ -523,6 +523,13 @@ def mqttWorker(): sleeptime = args.interval - ((time.time() - starttime) % args.interval) permanentErrors = 0 subsequentErrors = 0 + except weconnect.TooManyRequestsError: + if subsequentErrors > 0: + LOG.error('Retrieval error during update. Too many requests from your account. Will try again after 15 minutes') + else: + LOG.warning('Retrieval error during update. Too many requests from your account. Will try again after 15 minutes') + sleeptime = 900 + subsequentErrors += 1 except weconnect.RetrievalError: if subsequentErrors > 0: LOG.error('Retrieval error during update. Will try again after configured interval of %ds', args.interval)