diff --git a/netsuitesdk/internal/client.py b/netsuitesdk/internal/client.py index 50ac36b..92a1d87 100644 --- a/netsuitesdk/internal/client.py +++ b/netsuitesdk/internal/client.py @@ -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):