From 42850f7327e78f441fa877c2a41447e098bfef61 Mon Sep 17 00:00:00 2001 From: thicccat688 Date: Fri, 3 Feb 2023 12:27:41 +0000 Subject: [PATCH] Bump up version --- peerberrypy/api.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/peerberrypy/api.py b/peerberrypy/api.py index 6c914a5..c249714 100644 --- a/peerberrypy/api.py +++ b/peerberrypy/api.py @@ -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 = { diff --git a/setup.py b/setup.py index e5198dd..e021008 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='peerberrypy', - version='1.5.1', + version='1.5.3', license='MIT', author='Tomás Perestrelo', author_email='tomasperestrelo21@gmail.com',