Skip to content

Commit eba6b05

Browse files
committed
Fix return of no alerts failing
1 parent de32baa commit eba6b05

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)