From ea3f13f51ff445e3bf3ff844ac8f8dfe61c61514 Mon Sep 17 00:00:00 2001 From: smolkik-code Date: Wed, 10 Jun 2026 13:53:58 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20protectionGroups=20is=20v13+=20only=20?= =?UTF-8?q?=E2=80=94=20handle=20400=20gracefully?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- veeam_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/veeam_client.py b/veeam_client.py index 592f161..f86df11 100644 --- a/veeam_client.py +++ b/veeam_client.py @@ -296,7 +296,10 @@ class VeeamClient: async def fetch_protection_groups(self) -> list[dict]: if self._is_v12(): - return await self._fetch_json_list("/api/v1/agents/protectionGroups") + try: + return await self._fetch_json_list("/api/v1/agents/protectionGroups") + except Exception: + return [] return [] async def fetch_agent_policies(self) -> list[dict]: