Skip to content

Commit

Permalink
Merge pull request #346 from chrismdd/chrism/fix-unicode-error
Browse files Browse the repository at this point in the history
Remove redundant string conversion to prevent UnicodeEncodeError
  • Loading branch information
yannmh committed Jan 28, 2019
2 parents c638abf + ae3fc5b commit fec626d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datadog/api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def submit(cls, method, path, body=None, attach_host_name=False, response_format
except ApiError as e:
if _mute:
for error in e.args[0]['errors']:
log.error(str(error))
log.error(error)
if error_formatter is None:
return e.args[0]
else:
Expand Down

0 comments on commit fec626d

Please sign in to comment.