Skip to content

Commit

Permalink
fix unicode bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcarneiro committed Jul 26, 2021
1 parent 3866ce3 commit ad2cba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yacron/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def _read(self, stream):
try:
sys.stdout.write(out_line)
except UnicodeEncodeError:
out_line.encode("ascii", "replace").decode("ascii")
out_line = out_line.encode("ascii", "replace").decode("ascii")
sys.stdout.write(out_line)
sys.stdout.flush()
if self.save_limit > 0:
Expand Down

0 comments on commit ad2cba0

Please sign in to comment.