Skip to content

Commit

Permalink
Raise Invalid Token error (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrishabh17 authored Apr 26, 2024
1 parent 45b5871 commit fffb9e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions qbosdk/qbosdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from future.moves.urllib.parse import urlencode

from .exceptions import NotFoundClientError, QuickbooksOnlineSDKError, UnauthorizedClientError,\
WrongParamsError, InternalServerError
WrongParamsError, InternalServerError, InvalidTokenError
from .apis import *


Expand Down Expand Up @@ -159,7 +159,7 @@ def __get_access_token(self):
raise InternalServerError('Internal server error', response.text)

else:
raise QuickbooksOnlineSDKError('Error: {0}'.format(response.status_code), response.text)
raise InvalidTokenError('Error: {0}'.format(response.status_code), response.text)

def revoke_refresh_token(refresh_token: str, client_id: str, client_secret: str):
api_data = {
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name='qbosdk',
version='0.17.2',
version='0.17.3',
author='Shwetabh Kumar',
author_email='shwetabh.kumar@fyle.in',
description='Python SDK for accessing Quickbooks Online APIs',
Expand Down

0 comments on commit fffb9e3

Please sign in to comment.