Skip to content

Remove redundant string conversion to prevent UnicodeEncodeError#346

Merged
yannmh merged 1 commit intoDataDog:masterfrom
chrismdd:chrism/fix-unicode-error
Jan 28, 2019
Merged

Remove redundant string conversion to prevent UnicodeEncodeError#346
yannmh merged 1 commit intoDataDog:masterfrom
chrismdd:chrism/fix-unicode-error

Conversation

@chrismdd
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants