Clean non-printable chars from stdout instead of dropping the whole thing
This commit is contained in:
parent
f80494e434
commit
066b7079ef
1 changed files with 1 additions and 1 deletions
|
@ -1075,7 +1075,7 @@ class Runner(object):
|
|||
if hasattr(sys.stdout, "isatty"):
|
||||
if "stdout" in data and sys.stdout.isatty():
|
||||
if not string_functions.isprintable(data['stdout']):
|
||||
data['stdout'] = ''
|
||||
data['stdout'] = ''.join(c for c in data['stdout'] if string_functions.isprintable(c))
|
||||
|
||||
if 'item' in inject:
|
||||
result.result['item'] = inject['item']
|
||||
|
|
Loading…
Reference in a new issue