state_string must always be initialized

See #1425
This commit is contained in:
Gina Häußge 2016-07-28 23:24:29 +02:00
parent 7c5cc8d256
commit 444a36d0f0

View file

@ -918,6 +918,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
"""
oldState = self._state
state_string = None
if self._comm is not None:
state_string = self._comm.getStateString()