From aaf2851459107f0fdd957504919cb8dbc2a00bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Thu, 14 Oct 2021 09:33:51 -0300 Subject: [PATCH] =?UTF-8?q?Ignorar=20certificados=20inv=C3=A1lidos=20ao=20?= =?UTF-8?q?importar=20do=20Gescon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/convenios/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sigi/apps/convenios/models.py b/sigi/apps/convenios/models.py index b4dfc79..84e683d 100644 --- a/sigi/apps/convenios/models.py +++ b/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 \ No newline at end of file + return obj