Compare commits

...

5 Commits

Author SHA1 Message Date
Stefan Allius
2a5266dfd6 catch socket.gaierror exception 2025-07-15 20:52:24 +02:00
Stefan Allius
dcc3fe67a5 Merge branch 'main' of https://github.com/s-allius/tsun-gen3-proxy into s-allius/issue472 2025-07-15 20:32:30 +02:00
Stefan Allius
c12b224414 Update dependency coverage to v7.9.2 2025-07-15 20:21:05 +02:00
Stefan Allius
c5675fea6e Merge branch 'main' of https://github.com/s-allius/tsun-gen3-proxy into renovate/coverage-7.x 2025-07-15 20:16:20 +02:00
renovate[bot]
8625fd06ad Update dependency coverage to v7.9.2 2025-07-03 13:44:15 +00:00
2 changed files with 5 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [unreleased]
- catch socket.gaierror exception and log this with info level
- Update dependency coverage to v7.9.2
- add-on: bump base-image to version 18.0.3
- add-on: remove armhf and armv7 support

View File

@@ -4,6 +4,7 @@ import logging
import traceback
import json
import gc
import socket
from aiomqtt import MqttCodeError
from asyncio import StreamReader, StreamWriter
from ipaddress import ip_address
@@ -138,7 +139,9 @@ class InverterBase(InverterIfc, Proxy):
f'Connected to {addr}')
asyncio.create_task(self.remote.ifc.client_loop(addr))
except (ConnectionRefusedError, TimeoutError) as error:
except (ConnectionRefusedError,
TimeoutError,
socket.gaierror) as error:
logging.info(f'{error}')
except Exception:
Infos.inc_counter('SW_Exception')