Skip to content

Commit

Permalink
Handle invalid login error during operations like get/post/search (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 authored Jan 31, 2023
1 parent 634015d commit 96c35eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions netsuitesdk/internal/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ def request(self, name, *args, **kwargs):
except Fault as e:
if 'SuiteTalk concurrent request limit exceeded. Request blocked' in str(e):
raise NetSuiteRateLimitError(str(e))
elif 'Invalid login attempt' in str(e):
raise NetSuiteLoginError(str(e), e.code)
else:
raise
except Exception as e:
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 @@

setuptools.setup(
name='netsuitesdk',
version='2.16.2',
version='2.16.3',
author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing the NetSuite SOAP webservice',
Expand Down

0 comments on commit 96c35eb

Please sign in to comment.