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 return None
else: else:
r.encoding = 'utf-8' r.encoding = 'utf-8'
log.warn('Unknown answer from PMS %s with status code %s. ' log.warn('Unknown answer from PMS %s with status code %s. ',
'Message: %s', url, r.status_code, r.text) url, r.status_code)
return True return True
# And now deal with the consequences of the exceptions # And now deal with the consequences of the exceptions