Skip to content

Commit

Permalink
Don't raise error when trying to read from finished print
Browse files Browse the repository at this point in the history
Could be caused by timing issues and one `continue_sending` too many, so
just ignore this but log a warning.
  • Loading branch information
foosel committed Apr 9, 2018
1 parent 8869748 commit 6d7f8a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/octoprint/util/comm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3547,7 +3547,8 @@ def getNext(self):
"""
with self._handle_mutex:
if self._handle is None:
raise ValueError("File %s is not open for reading" % self._filename)
self._logger.warn(u"File {} is not open for reading".format(self._filename))
return None, None, None

try:
offsets = self._offsets_callback() if self._offsets_callback is not None else None
Expand Down

0 comments on commit 6d7f8a2

Please sign in to comment.