Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Bump up version
Browse files Browse the repository at this point in the history
  • Loading branch information
thicccat688 committed Feb 3, 2023
1 parent 1db5d9c commit 42850f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions peerberrypy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,14 +638,14 @@ def login(self) -> str:
"""

if self.access_token:
self._session.add_header({'Authorization': f'Bearer {self.access_token}'})

try:
self.get_overview()

except PeerberryException:
raise PeerberryException('Invalid access token.')

self._session.add_header({'Authorization': f'Bearer {self.access_token}'})

return f'Bearer {self.access_token}'

login_data = {
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='peerberrypy',
version='1.5.1',
version='1.5.3',
license='MIT',
author='Tomás Perestrelo',
author_email='[email protected]',
Expand Down

0 comments on commit 42850f7

Please sign in to comment.