From 7668456abbae517b432f3bc2d908ea7bc9e03baf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20David?= Date: Mon, 6 Jan 2025 17:30:16 +0100 Subject: [PATCH] Pairing: Better error message for debug --- services/processor/processor/processor.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/services/processor/processor/processor.py b/services/processor/processor/processor.py index ccbd887..296bae8 100644 --- a/services/processor/processor/processor.py +++ b/services/processor/processor/processor.py @@ -282,8 +282,11 @@ def get_pairing_list(self): logging.info("get_pairing_list") res = ayon_api.get(f"{self.entrypoint}/pairing") - assert res.status_code == 200, f"{self.entrypoint}/pairing failed" - # logging.info(f'get_pairing_list {res.status_code} {res.data}') + assert res.status_code == 200, ( + "{self.entrypoint}/pairing failed. " + f" Status code '{res.status_code}': {res.detail}" + ) + return res.data def get_paired_ayon_project(self, kitsu_project_id: str) -> str | None: