Skip to content

Commit 8cb9ad4

Browse files
authored
Merge pull request #352 from simvue-io/hotfix/fix-no-alerts-list
Fix return of no alerts failing
2 parents de32baa + eba6b05 commit 8cb9ad4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simvue/factory/proxy/remote.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ def list_alerts(self) -> list[dict[str, typing.Any]]:
339339
self._error(f"Got exception when listing alerts: {str(err)}")
340340
return []
341341

342-
if not (response_data := response.json()) or not (
343-
data := response_data.get("data")
342+
if not (response_data := response.json()) or (
343+
(data := response_data.get("data")) is None
344344
):
345345
self._error(
346346
"Expected key 'data' in response from server during alert retrieval"

0 commit comments

Comments
 (0)