Skip to content
Snippets Groups Projects
Commit efd77953 authored by Mark D. Roth's avatar Mark D. Roth
Browse files

Attempt to deal with unicode strings in jenkins environment.

parent 53bd6933
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ _MAX_RESULT_SIZE = 8192 ...@@ -52,7 +52,7 @@ _MAX_RESULT_SIZE = 8192
def sanitized_environment(env): def sanitized_environment(env):
sanitized = {} sanitized = {}
for key, value in env.items(): for key, value in env.items():
sanitized[str(key).encode()] = str(value).encode() sanitized[key.encode(errors='ignore')] = value.encode(errors='ignore')
return sanitized return sanitized
def platform_string(): def platform_string():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment