Skip to content

Commit fec626d

Browse files
author
Yann
authored
Merge pull request #346 from chrismdd/chrism/fix-unicode-error
Remove redundant string conversion to prevent UnicodeEncodeError
2 parents c638abf + ae3fc5b commit fec626d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datadog/api/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def submit(cls, method, path, body=None, attach_host_name=False, response_format
171171
except ApiError as e:
172172
if _mute:
173173
for error in e.args[0]['errors']:
174-
log.error(str(error))
174+
log.error(error)
175175
if error_formatter is None:
176176
return e.args[0]
177177
else:

0 commit comments

Comments
 (0)