From 1470272fc1b5e012e45dc8fd9ed604119b907165 Mon Sep 17 00:00:00 2001 From: Johny Chen Jy <31947361+carcaroff@users.noreply.github.com> Date: Wed, 1 Aug 2018 17:49:37 -0300 Subject: [PATCH] update zeep method uses settings instead of options --- pytrustnfe/nfe/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytrustnfe/nfe/__init__.py b/pytrustnfe/nfe/__init__.py index 8072ecf..6a3d1d5 100644 --- a/pytrustnfe/nfe/__init__.py +++ b/pytrustnfe/nfe/__init__.py @@ -134,7 +134,7 @@ def _send(certificado, method, **kwargs): port = next(iter(client.wsdl.port_types)) first_operation = next(iter(client.wsdl.port_types[port].operations)) - with client.options(raw_response=True): + with client.settings(raw_response=True): response = client.service[first_operation](xml) response, obj = sanitize_response(response.text) return { @@ -264,7 +264,7 @@ def consulta_distribuicao_nfe(certificado, **kwargs): port = next(iter(client.wsdl.port_types)) first_operation = next(iter(client.wsdl.port_types[port].operations)) - with client.options(raw_response=True): + with client.settings(raw_response=True): response = client.service[first_operation](nfeDadosMsg=xml, _soapheaders=[xml_um]) response, obj = sanitize_response(response.text) return {