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
1 changed files with 1 additions and 1 deletions

View File

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