Fix TypeError when logging weird PMS answers
This commit is contained in:
parent
e6520ad2e8
commit
66f6605406
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue