Skip to content

Commit

Permalink
Change to raw_response (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh authored Jun 13, 2023
1 parent 9c90527 commit e37d6f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sageintacctsdk/apis/api_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def __post_request(self, dict_body: dict, api_url: str):
except:
#bad xml format from Sage Intacct fix
raw_response = '<root>' + raw_response.text + '</root>'
parsed_xml = xmltodict.parse(raw_response.text, force_list={self.__dimension})['root']
parsed_xml = xmltodict.parse(raw_response, force_list={self.__dimension})['root']
parsed_response = json.loads(json.dumps(parsed_xml))

if raw_response.status_code == 200:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name='sageintacctsdk',
version='1.14.1',
version='1.14.2',
author='Ashwin T',
author_email='ashwin.t@fyle.in',
description='Python SDK for accessing Sage Intacct APIs',
Expand Down

0 comments on commit e37d6f6

Please sign in to comment.