From 081d6cd354a3c5b902a5213dfeaf3d048112e449 Mon Sep 17 00:00:00 2001 From: marinaGD Date: Wed, 19 Dec 2018 17:48:51 -0200 Subject: [PATCH] change _send --- pytrustnfe/nfe/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pytrustnfe/nfe/__init__.py b/pytrustnfe/nfe/__init__.py index 9c22f3f..0083b3c 100644 --- a/pytrustnfe/nfe/__init__.py +++ b/pytrustnfe/nfe/__init__.py @@ -92,10 +92,9 @@ def _send(certificado, method, **kwargs): session = _get_session(certificado) if has_patch: return nfeInutilizacaoCE(session, xml_send) - else: - transport = Transport(session=session) - first_op, client = _get_client(base_url, transport) - return _send_zeep(first_op, client, xml_send) + transport = Transport(session=session) + first_op, client = _get_client(base_url, transport) + return _send_zeep(first_op, client, xml_send) def _send_zeep(first_operation, client, xml_send):