Skip to content

Commit

Permalink
Removing Error Parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh619-sudo committed Apr 23, 2024
1 parent 6e7ed74 commit 65357f3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions netsuitesdk/internal/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,16 +515,6 @@ def upsert(self, record, record_type=None):
return record_ref
else:
exc = self._request_error('upsert', detail=status['statusDetail'][0])

if record_type:
try:
error_parser = ErrorParser(self.get)
error_dict = export_error_matcher(exc.message, record_type)
message = error_parser.export_error_parser(error_dict, exc.message)
exc.message = message
except Exception as e:
self.logger.debug('Error parsing error message', e.message)

raise exc

def basic_stringfield_search(self, type_name, attribute, value, operator=None):
Expand Down

0 comments on commit 65357f3

Please sign in to comment.