From 66f6605406232d561fe2c2002006675ab8f91145 Mon Sep 17 00:00:00 2001 From: croneter Date: Tue, 23 Jan 2018 08:07:19 +0100 Subject: [PATCH] Fix TypeError when logging weird PMS answers --- resources/lib/downloadutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/downloadutils.py b/resources/lib/downloadutils.py index 9c93a3f3..4c33a702 100644 --- a/resources/lib/downloadutils.py +++ b/resources/lib/downloadutils.py @@ -314,8 +314,8 @@ class DownloadUtils(): return None else: r.encoding = 'utf-8' - log.warn('Unknown answer from PMS %s with status code %s. ' - 'Message: %s', url, r.status_code, r.text) + log.warn('Unknown answer from PMS %s with status code %s. ', + url, r.status_code) return True # And now deal with the consequences of the exceptions