Browse Source

Ignorar certificados inválidos ao importar do Gescon

pull/108/head
Sesostris Vieira 3 years ago
parent
commit
aaf2851459
  1. 4
      sigi/apps/convenios/models.py

4
sigi/apps/convenios/models.py

@ -490,7 +490,7 @@ class Gescon(models.Model):
projeto = Projeto.objects.get(sigla=sigla_sigi)
try:
response = requests.get(url)
response = requests.get(url, verify=False)
except Exception as e:
self.add_message(
_(u"\tErro ao acessar {url}: {errmsg}").format(
@ -775,4 +775,4 @@ class Gescon(models.Model):
@classmethod
def load(cls):
obj, created = cls.objects.get_or_create(pk=1)
return obj
return obj

Loading…
Cancel
Save