From 0056afd8ac739bf69cbb45a62d49924131178180 Mon Sep 17 00:00:00 2001 From: Yair Ben Meir Date: Mon, 12 Feb 2024 17:51:09 +1100 Subject: [PATCH] Added response details in case of oauth error. --- pyzoom/oauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyzoom/oauth.py b/pyzoom/oauth.py index 375f419..43e73a3 100644 --- a/pyzoom/oauth.py +++ b/pyzoom/oauth.py @@ -51,7 +51,7 @@ def _oauth_request(headers, data): if response.status_code == 200: return response.json() - raise err.APIError("Failed to refresh tokens") + raise err.APIError(f"Failed to refresh tokens: {response.status_code} {response.text}") def refresh_tokens(client_id: str, client_secret: str, refresh_token: str):