Skip to content

Commit

Permalink
Stopped exiting within library
Browse files Browse the repository at this point in the history
  • Loading branch information
Poshy163 committed Jul 18, 2024
1 parent 908b2fa commit 62ca62b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions SharesightAPI/SharesightAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async def refresh_access_token(self):
else:
logger.info(f"Failed to refresh access token: {response.status}")
logger.info(await response.json())
exit(1)
return None

async def get_access_token(self):
current_time = time.time()
Expand Down Expand Up @@ -107,11 +107,11 @@ async def get_access_token(self):
logger.info(f"Failed to obtain access token: {response.status}")
logger.info(f"Are you sure you filled out correct constructor information?")
logger.info(await response.json())
exit(1)
return None
else:
logger.info(f"Failed to obtain access token: {response.status}")
logger.info(await response.json())
exit(1)
return None

async def get_api_request(self, endpoint, endpoint_list_version, access_token=None):

Expand All @@ -133,7 +133,7 @@ async def get_api_request(self, endpoint, endpoint_list_version, access_token=No
logger.info(f"API request failed: {response.status}")
data = await response.json()
logger.info(data)
exit(1)
return None
else:
logger.info(f"API request failed: {response.status}")
data = await response.json()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="SharesightAPI",
version="1.1.6",
version="1.1.7",
author="Joshua Leaper",
author_email="poshernater163@gmail.com",
description="A Python library to access your sharesight portfolio information",
Expand Down

0 comments on commit 62ca62b

Please sign in to comment.