From d50e453751a7fa4c8802ec6793dc9ae4807a141e Mon Sep 17 00:00:00 2001 From: Key Date: Fri, 5 Apr 2024 08:47:40 -0500 Subject: [PATCH] fix conditional to only skip for audit_history --- src/tap_intacct/client.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/tap_intacct/client.py b/src/tap_intacct/client.py index 3d52602..a109cb4 100644 --- a/src/tap_intacct/client.py +++ b/src/tap_intacct/client.py @@ -162,7 +162,15 @@ def _post_request(self, dict_body: dict, api_url: str) -> Dict: if api_response['result']['status'] == 'success': return api_response - if api_response['result']['status'] == 'failure' and "There was an error processing the request" in api_response['result']['errormessage']['error']['description2']: + if ( + api_response['result']['status'] == 'failure' + and "There was an error processing the request" + in api_response['result']['errormessage']['error']['description2'] + and dict_body["request"]["operation"]["content"]["function"]["query"][ + "object" + ] + == "AUDITHISTORY" + ): return {"result": "skip_and_paginate"} if response.status_code == 400: