Don't raise error when trying to read from finished print

Could be caused by timing issues and one `continue_sending` too many, so
just ignore this but log a warning.
This commit is contained in:
Gina Häußge committed 2018-04-09 15:56:35 +02:00
1 parent 8869748ecc
commit 6d7f8a2a64
1 file changed
+2 -1
+2 -1
View File
@@ -3547,7 +3547,8 @@ class PrintingGcodeFileInformation(PrintingFileInformation):
"""
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