From 65357f3fc2eb062ec6fc57f9d6b17f982f6d2c3d Mon Sep 17 00:00:00 2001 From: Ashutosh619-sudo Date: Tue, 23 Apr 2024 17:53:30 +0530 Subject: [PATCH] Removing Error Parser --- 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):