Skip to content

Commit

Permalink
Make ParseError exception specific
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronfriedman6 committed Apr 4, 2024
1 parent bfccc47 commit e59de79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shoppertrak_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _check_response(self, response_text):
try:
root = ET.fromstring(response_text)
error = root.find("error")
except Exception as e:
except ET.ParseError as e:
self.logger.error(f"Could not parse XML response {response_text}: {e}")
raise ShopperTrakApiClientError(
f"Could not parse XML response {response_text}: {e}"
Expand Down

0 comments on commit e59de79

Please sign in to comment.