Commit f56b58b5 authored by guglielmo's avatar guglielmo

timeout and no TLS verification arguments passed to the requests.get method

parent 85e3c728
......@@ -111,7 +111,7 @@ class Content(models.Model):
"""
try:
res = requests.get(self.url)
res = requests.get(self.url, timeout=5, verify=False)
if not res.ok:
raise Exception("Internal Urllib error")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment