Update logging to handly empty PMS responses
This commit is contained in:
parent
b26b679dc1
commit
b2a9f1a453
1 changed files with 7 additions and 2 deletions
|
@ -326,6 +326,11 @@ class DownloadUtils():
|
|||
self.logMsg("====== 200 Success ======", 2)
|
||||
self.logMsg("Received an XML response for: %s" % url, 2)
|
||||
return r
|
||||
except:
|
||||
try:
|
||||
if r.text == '' and r.status_code == 200:
|
||||
self.logMsg("====== 200 Success ======", 2)
|
||||
self.logMsg("Answer from PMS does not contain a body", 2)
|
||||
except:
|
||||
self.logMsg("Unable to convert the response for: %s" % url, 2)
|
||||
self.logMsg("Content-type was: %s" % r.headers['content-type'], 2)
|
||||
|
|
Loading…
Reference in a new issue