Skip to content

Commit

Permalink
added logs for invalid token
Browse files Browse the repository at this point in the history
  • Loading branch information
Danylo-panoply committed Mar 15, 2023
1 parent 4114e54 commit 8db1db1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion panoply/constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "2.1.0"
__version__ = "2.1.1"
__package_name__ = "panoply-python-sdk"
3 changes: 3 additions & 0 deletions panoply/datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ def wrapper(*args, **kwargs):
_callback = getattr(self, callback)
_callback(self.source.get(access_key))
except Exception as e:
response = getattr(e, 'response', None)
if isinstance(response, requests.Response):
self.log(response.text)
self.log('Error: Access token can\'t be revalidated. '
'The user would have to re-authenticate',
traceback.format_exc())
Expand Down

0 comments on commit 8db1db1

Please sign in to comment.