From 755d37aa9b02a9f26dc9de515a3979c6c9a80657 Mon Sep 17 00:00:00 2001 From: Ashutosh singh <55102089+Ashutosh619-sudo@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:47:03 +0530 Subject: [PATCH] Removing Error Parser (#126) --- netsuitesdk/internal/client.py | 10 ---------- 1 file changed, 10 deletions(-) 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):