diff --git a/octoprint/printer.py b/octoprint/printer.py index 286069a..c869303 100644 --- a/octoprint/printer.py +++ b/octoprint/printer.py @@ -356,7 +356,7 @@ class Printer(): self._timelapse.onPrintjobStarted(self._filename) # forward relevant state changes to gcode manager - if oldState == self._comm.STATE_PRINTING: + if self._comm is not None and oldState == self._comm.STATE_PRINTING: if state == self._comm.STATE_OPERATIONAL: self._gcodeManager.printSucceeded(self._filename) elif state == self._comm.STATE_CLOSED or state == self._comm.STATE_ERROR or state == self._comm.STATE_CLOSED_WITH_ERROR: diff --git a/octoprint/templates/index.html b/octoprint/templates/index.html index 305227d..8bedf3e 100644 --- a/octoprint/templates/index.html +++ b/octoprint/templates/index.html @@ -79,7 +79,7 @@
- +
Name