Skip to content

Fix error handling on failed responses#2

Merged
aamaredia merged 1 commit intomainfrom
alim/fix-error-handling
Jan 3, 2024
Merged

Fix error handling on failed responses#2
aamaredia merged 1 commit intomainfrom
alim/fix-error-handling

Conversation

@aamaredia
Copy link

  • Errors are returned as a dictionary in the response. The code was passing that along as a string instead of deserializing it to gather the actual failure reason. This would result in exceptions throwing KeyError instead of the actual exception class

@aamaredia aamaredia requested a review from a team January 3, 2024 21:24
- Errors are returned as a dictionary in the response. The code was
  passing that along as a string instead of deserializing it to gather
  the actual failure reason. This would result in exceptions throwing
  KeyError instead of the actual exception class
@aamaredia aamaredia force-pushed the alim/fix-error-handling branch from 5b04620 to 138e5c0 Compare January 3, 2024 21:25
@aamaredia aamaredia merged commit 7e13ea9 into main Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments