Fix TypeError when logging weird PMS answers

This commit is contained in:
croneter 2018-01-23 08:07:19 +01:00
parent e6520ad2e8
commit 66f6605406

View file

@ -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