From ca0fc6e86620599b8e4ccced2fc4dfdc8340b520 Mon Sep 17 00:00:00 2001 From: Swapnil Date: Tue, 30 Jan 2024 21:46:20 +0530 Subject: [PATCH] app: fix error --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 03b26e2..2d8fb49 100644 --- a/app/main.py +++ b/app/main.py @@ -186,7 +186,7 @@ def raise_for_status(response): try: msg = response.json().get('error', '') except: - pass + msg = response.text raise Exception(f'HTTPError: {response.status_code} \n Message: {msg}') if __name__ == '__main__':