Skip to content

Commit

Permalink
Pairing: Better error message for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilix4 committed Jan 6, 2025
1 parent af5a36c commit 7668456
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions services/processor/processor/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7668456

Please sign in to comment.