Skip to content

Commit aa57723

Browse files
Fixed deprecated exception raise on API client
1 parent ab3d86a commit aa57723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netsuite/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def search_all(self, searchtype, search_preferences = None):
400400
searchResult = response.body.searchResult
401401

402402
if not searchResult.status.isSuccess:
403-
raise "Search result was not successful for page {0}".format(nextPage)
403+
raise Exception("Search result was not successful for page {0} {1}".format(nextPage, searchResult.status))
404404

405405
newRecords = searchResult.recordList.record
406406
self.logger.debug('Found {0} of {1} record in page {2}/{3}'.format(len(record), searchResult.totalRecords, nextPage, searchResult.totalPages))

0 commit comments

Comments
 (0)