Browse Source

Fix the correct parameters when raising an exception because a bad configuration

fix-invalid-token-bug
Danimar Ribeiro 6 years ago
parent
commit
8feb021768
  1. 2
      pytrustnfe/nfse/floripa/__init__.py
  2. 2
      setup.py

2
pytrustnfe/nfse/floripa/__init__.py

@ -67,7 +67,7 @@ def _send(certificado, method, **kwargs):
token = _get_oauth_token(**kwargs)
if "access_token" not in token:
raise Exception(
"%s - %s: %s" % (token["status"], token["error"], token["message"])
"%s: %s" % (token["error"], token["error_description"])
)
kwargs.update({"numero": 1, "access_token": token["access_token"]})

2
setup.py

@ -2,7 +2,7 @@
from setuptools import setup, find_packages
VERSION = "1.0.48"
VERSION = "1.0.49"
setup(

Loading…
Cancel
Save