Skip to content

Commit

Permalink
HGI-6564: Ensure errormessage exists before trying to parse
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyyid committed Oct 1, 2024
1 parent 1b2cbb5 commit 76c4557
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tap_intacct/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def _post_request(self, dict_body: dict, api_url: str) -> Dict:

if (
api_response['result']['status'] == 'failure'
and api_response.get('result', {}).get('errormessage', {}).get('error', {}).get('description2')
and "There was an error processing the request"
in api_response['result']['errormessage']['error']['description2']
and dict_body["request"]["operation"]["content"]["function"]["query"][
Expand Down

0 comments on commit 76c4557

Please sign in to comment.