Fix for connection

In case status is good, but server is unreachable.
This commit is contained in:
angelblue05 2015-11-25 17:20:06 -06:00
parent fc8c41ccf3
commit 4e2cd67946

View file

@ -281,7 +281,7 @@ class DownloadUtils():
self.logMsg("Response: %s" % r, 2)
return r
except:
if r.headers['content-type'] == "text/html":
if r.headers.get('content-type') == "text/html":
pass
else:
self.logMsg("Unable to convert the response for: %s" % url, 1)