File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ def _assert_response(response):
116116 if response .status_code == 498 :
117117 raise exceptions .ExpiredTokenError (
118118 'Expired token, try to refresh it' , response .text )
119- if response .status_code = = 500 :
119+ if response .status_code > = 500 :
120120 raise exceptions .InternalServerError (
121121 'Internal server error' , response .text )
122122 raise exceptions .PlatformError (
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def __get_access_token():
4242 'Wrong client secret or/and refresh token' , response .text )
4343 elif response .status_code == 404 :
4444 raise exceptions .NotFoundItemError ('Client ID doesn\' t exist' , response .text )
45- elif response .status_code = = 500 :
45+ elif response .status_code > = 500 :
4646 raise exceptions .InternalServerError ('Internal server error' , response .text )
4747 else :
4848 raise exceptions .PlatformError (
Original file line number Diff line number Diff line change 55
66setuptools .setup (
77 name = 'fyle' ,
8- version = '1.1.1 ' ,
8+ version = '1.1.2 ' ,
99 author = 'Siva Narayanan' ,
1010 author_email = 'siva@fyle.in' ,
1111 description = 'Python SDK for accessing Fyle Platform APIs' ,
You can’t perform that action at this time.
0 commit comments