Convert text reports to bytes before writing them
issue7594 review58361002
This commit is contained in:
1 parent
fc1424f83b
commit
d6fcb2dce3
1 file changed
+2
@@ -43,6 +43,8 @@ class Action(object):
|
||||
|
||||
fp_name = os.path.join(dtemp,
|
||||
slugify(name) + os.extsep + slugify(type))
|
||||
if isinstance(data, str):
|
||||
data = data.encode('utf-8')
|
||||
with open(fp_name, 'wb') as file_d:
|
||||
file_d.write(data)
|
||||
if email_print:
|
||||
|
||||
Reference in new issue
Block a user