Skip to content

Commit e2c208b

Browse files
Speculative fix for minimization failures. (#1768)
1 parent 00d1fc2 commit e2c208b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python/bot/tasks/minimize_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ def get_temporary_file_name(original_file):
876876
directory, basename = os.path.split(original_file)
877877
basename = basename[-MAX_TEMPORARY_FILE_BASENAME_LENGTH:]
878878

879-
random_hex = binascii.b2a_hex(os.urandom(16))
879+
random_hex = binascii.b2a_hex(os.urandom(16)).decode('utf-8')
880880
new_file_path = os.path.join(directory, '%s%s' % (random_hex, basename))
881881

882882
return new_file_path

0 commit comments

Comments
 (0)