diff --git a/resources/lib/DownloadUtils.py b/resources/lib/DownloadUtils.py index 94010800..04d2da85 100644 --- a/resources/lib/DownloadUtils.py +++ b/resources/lib/DownloadUtils.py @@ -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)