Skip to content

Commit

Permalink
馃悰 Add missing rstrip
Browse files Browse the repository at this point in the history
Fixes #3115
  • Loading branch information
foosel committed Apr 9, 2019
1 parent 8970fb4 commit d657630
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/octoprint/util/comm.py
Expand Up @@ -2747,9 +2747,9 @@ def _readline(self):
return None

try:
ret = ret.decode('utf-8')
ret = ret.decode('utf-8').rstrip()
except UnicodeDecodeError:
ret = ret.decode('latin1')
ret = ret.decode('latin1').rstrip()

self._log(u"Recv: {}".format(ret))

Expand Down

0 comments on commit d657630

Please sign in to comment.