diff --git a/pytrustnfe/nfse/bh/__init__.py b/pytrustnfe/nfse/bh/__init__.py index f96f89c..2115625 100644 --- a/pytrustnfe/nfse/bh/__init__.py +++ b/pytrustnfe/nfse/bh/__init__.py @@ -54,10 +54,10 @@ def _send(certificado, method, **kwargs): response = client.service[method](xml_cabecalho, xml_send) - response, obj = sanitize_response(response.encode('utf-8')) + response, obj = sanitize_response(response) return { 'sent_xml': xml_send, - 'received_xml': response.decode('utf-8'), + 'received_xml': response, 'object': obj } diff --git a/pytrustnfe/nfse/floripa/__init__.py b/pytrustnfe/nfse/floripa/__init__.py index 817c430..4229c17 100644 --- a/pytrustnfe/nfse/floripa/__init__.py +++ b/pytrustnfe/nfse/floripa/__init__.py @@ -112,7 +112,6 @@ def consultar_nota(certificado, **kwargs): headers = {"Accept": "application/json", "Authorization": "Bearer %s" % kwargs['access_token']} r = requests.get(url, headers=headers) - print(r.status_code) if r.status_code == 200: return r.text else: diff --git a/setup.py b/setup.py index 8bb9ce5..dc49cfd 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages -VERSION = "1.0.21" +VERSION = "1.0.22" setup(