Skip to content

Commit

Permalink
[ADD] log warning
Browse files Browse the repository at this point in the history
  • Loading branch information
corredato committed Jul 12, 2024
1 parent e7e5b2b commit 936ec31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/erpbrasil/edoc/nfe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,9 @@ def consultar_distribuicao(
)

def monta_processo(self, edoc, proc_envio, proc_recibo=None):
nfe = proc_envio.envio_raiz.find("{" + self._namespace + "}NFe")
nfe = proc_envio.envio_raiz.find(
"{" + self._namespace + "}NFe"
) # Se proc_envio for 'None', debugar o método 'analisar_retorno_raw'
if proc_recibo:
protocolos = proc_recibo.resposta.protNFe
else:
Expand Down
4 changes: 1 addition & 3 deletions src/erpbrasil/edoc/resposta.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ def analisar_retorno_raw(operacao, raiz, xml, retorno, classe):
resposta = classe.parseString(resultado, silence=True)
return RetornoSoap(operacao, raiz, xml, retorno, resposta)
else:
logging.warning(
"'match' em 'analisar_retorno_raw' é None"
)
logging.warning("'match' em 'analisar_retorno_raw' é None")


def analisar_retorno(operacao, raiz, xml, retorno, classe):
Expand Down

0 comments on commit 936ec31

Please sign in to comment.