From 517e40f8974b13c77a0858216fc612addb55228a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Tue, 31 Jan 2023 15:33:51 -0300 Subject: [PATCH] Suprime warning de certificado no log --- sigi/apps/servicos/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sigi/apps/servicos/models.py b/sigi/apps/servicos/models.py index 75831ee..6dc6bab 100644 --- a/sigi/apps/servicos/models.py +++ b/sigi/apps/servicos/models.py @@ -135,6 +135,8 @@ class Servico(models.Model): import requests from xml.dom.minidom import parseString + requests.packages.urllib3.disable_warnings() + def reset(): if self.data_ultimo_uso is not None: self.data_verificacao = None