Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle the case where the code object in the response is not an integer #87

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

AaronAtDuo
Copy link
Contributor

Description

When we string-ify the information for a failed api call, we were assuming the 'code' is always an integer. There is at least one scenario where that is not the case, so don't make that assumption. There was no real reason to assume it was anyway, since we were just turning around and converting it to a string anyway.

Motivation and Context

Fixes an unchecked exception that occurs if an api call returns a non-integer code value

How Has This Been Tested?

Not covered by tests

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Copy link
Contributor

@axorna axorna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@AaronAtDuo AaronAtDuo merged commit f0073ac into master Jul 31, 2024
3 checks passed
@AaronAtDuo AaronAtDuo deleted the handle_non_integer_code_in_response branch July 31, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants