From 146bd401bf80f441b8f3003c227ed227590029d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Wed, 25 Nov 2020 11:54:22 +0100 Subject: [PATCH] HTTP 400: Log response body when it can't be decoded as json --- jellyfin_kodi/jellyfin/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jellyfin_kodi/jellyfin/http.py b/jellyfin_kodi/jellyfin/http.py index 38893428..a3027ca4 100644 --- a/jellyfin_kodi/jellyfin/http.py +++ b/jellyfin_kodi/jellyfin/http.py @@ -141,7 +141,7 @@ class HTTP(object): try: LOG.warning(r.json()) except Exception: - pass + LOG.warning(r.text) elif r.status_code == 500: # log and ignore. LOG.error("--[ 500 response ] %s", error)