Compare commits
5 Commits
renovate/a
...
s-allius/i
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a5266dfd6 | ||
|
|
dcc3fe67a5 | ||
|
|
c12b224414 | ||
|
|
c5675fea6e | ||
|
|
8625fd06ad |
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [unreleased]
|
## [unreleased]
|
||||||
|
|
||||||
|
- catch socket.gaierror exception and log this with info level
|
||||||
- Update dependency coverage to v7.9.2
|
- Update dependency coverage to v7.9.2
|
||||||
- add-on: bump base-image to version 18.0.3
|
- add-on: bump base-image to version 18.0.3
|
||||||
- add-on: remove armhf and armv7 support
|
- add-on: remove armhf and armv7 support
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import logging
|
|||||||
import traceback
|
import traceback
|
||||||
import json
|
import json
|
||||||
import gc
|
import gc
|
||||||
|
import socket
|
||||||
from aiomqtt import MqttCodeError
|
from aiomqtt import MqttCodeError
|
||||||
from asyncio import StreamReader, StreamWriter
|
from asyncio import StreamReader, StreamWriter
|
||||||
from ipaddress import ip_address
|
from ipaddress import ip_address
|
||||||
@@ -138,7 +139,9 @@ class InverterBase(InverterIfc, Proxy):
|
|||||||
f'Connected to {addr}')
|
f'Connected to {addr}')
|
||||||
asyncio.create_task(self.remote.ifc.client_loop(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}')
|
logging.info(f'{error}')
|
||||||
except Exception:
|
except Exception:
|
||||||
Infos.inc_counter('SW_Exception')
|
Infos.inc_counter('SW_Exception')
|
||||||
|
|||||||
Reference in New Issue
Block a user