Bug with formatting of string

This commit is contained in:
Anton Hvornum 2022-02-09 15:26:26 +01:00
parent ae7e791f40
commit 83c663fcb2
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 2 additions and 1 deletions

View File

@ -288,7 +288,8 @@ class SysCommandWorker:
os.fsync(self.child_fd)
with open('debug_write.txt', 'a') as silent_output:
silent_output.write(f"Wrote {[data + (b'\n' if line_ending else b'')]}\n")
written_data_string = data + (b'\n' if line_ending else b'')
silent_output.write(f"Wrote {[written_data_string]}\n")
return written_data