Skip to content

Commit

Permalink
handle failed login gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
ties committed Feb 17, 2024
1 parent 320e2e5 commit 20fa03d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 2024-xx-yy (v0.4.1)
## 2024-02-17 (v0.4.1)

* fix: `modem_upstream_ofdm` metric is now called `modem_upstream_ofdma`
* fix: Return metrics when login fails (main cause: concurrent login)

## 2024-02-xx (v0.4.0)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sagemcom-f3896-client"
version = "0.4.0"
version = "0.4.2"
description = ""
authors = ["Ties de Kock <ties@tiesdekock.nl>"]
readme = "README.md"
Expand Down
2 changes: 2 additions & 0 deletions sagemcom_f3896_client/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from sagemcom_f3896_client import templates
from sagemcom_f3896_client.client import SagemcomModemClient, SagemcomModemSessionClient
from sagemcom_f3896_client.exception import LoginFailedException
from sagemcom_f3896_client.log_parser import (
CMStatusMessageOFDM,
DownstreamProfileMessage,
Expand Down Expand Up @@ -163,6 +164,7 @@ async def update_metrics(self) -> None:

self.registry = registry
except (
LoginFailedException,
aiohttp.ClientResponseError,
aiohttp.client_exceptions.ClientConnectorError,
asyncio.TimeoutError,
Expand Down

0 comments on commit 20fa03d

Please sign in to comment.