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

Remove redundant string conversion to prevent UnicodeEncodeError #346

Merged
merged 1 commit into from Jan 28, 2019

Conversation

chrismdd
Copy link
Contributor

This PR removes a string conversion that causes #223. It is reasonable to assume that the values of the errors Array are strings, so this conversion is unnecessary, and it causes a UnicodeEncodeError in Python 2 if the API response contains non-ASCII characters.

Tested with Python 2.7.15 and 3.7.2.

@yannmh yannmh self-requested a review January 22, 2019 18:18
@chrismdd
Copy link
Contributor Author

@yannmh thanks for the review. Could you please merge this too (I don't have write access)

@yannmh yannmh merged commit fec626d into DataDog:master Jan 28, 2019
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.

None yet

2 participants