From 4ec22c0b239b28ec5cb1d6790b747db160cfc1d7 Mon Sep 17 00:00:00 2001 From: Bruno Date: Fri, 12 Jul 2024 13:46:42 -0300 Subject: [PATCH] [ADD] log warning --- src/erpbrasil/edoc/resposta.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/erpbrasil/edoc/resposta.py b/src/erpbrasil/edoc/resposta.py index 543d81d..8acca86 100644 --- a/src/erpbrasil/edoc/resposta.py +++ b/src/erpbrasil/edoc/resposta.py @@ -1,6 +1,7 @@ # Copyright (C) 2018 - TODAY Luis Felipe Mileo - KMEE INFORMATICA LTDA # License MIT +import logging import re from lxml import etree @@ -37,6 +38,8 @@ def analisar_retorno_raw(operacao, raiz, xml, retorno, classe): classe.Validate_simpletypes_ = False resposta = classe.parseString(resultado, silence=True) return RetornoSoap(operacao, raiz, xml, retorno, resposta) + else: + logging.warning("'match' em 'analisar_retorno_raw' é None") def analisar_retorno(operacao, raiz, xml, retorno, classe):