Skip to content

Commit 4767aaa

Browse files
committed
fix: correct invalid log message
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
1 parent ce1b496 commit 4767aaa

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

haproxy_agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,10 +652,11 @@ async def nc_get_user(app_id: str, all_headers: dict[str, str]) -> NcUser | None
652652
params={"appId": app_id},
653653
) as resp:
654654
if not resp.ok:
655-
LOGGER.info("Failed to fetch ExApp metadata from Nextcloud.", await resp.text())
655+
error_text = await resp.text()
656+
LOGGER.info("Failed to fetch user info from Nextcloud: %s", error_text)
656657
if resp.status // 100 == 4:
657658
return None
658-
raise Exception("Failed to fetch ExApp metadata from Nextcloud.", await resp.text())
659+
raise Exception("Failed to fetch user info from Nextcloud.", error_text)
659660
data = await resp.json()
660661
return NcUser.model_validate(data)
661662

0 commit comments

Comments
 (0)