Skip to content

Commit

Permalink
Merge pull request #56 from Danylo-panoply/PAN-1649_token_validating_2v
Browse files Browse the repository at this point in the history
[PAN-1649] - added logs for invalid token
  • Loading branch information
Danylo-panoply authored Mar 15, 2023
2 parents 4114e54 + 8db1db1 commit 46e8ff9
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 46e8ff9

Please sign in to comment.