Fix error where API state is requested and printer is offline

This commit is contained in:
C-o-r-E 2014-03-17 23:04:57 -04:00
parent 50cf776e70
commit 619fe9a0e7

View file

@ -607,6 +607,7 @@ class Printer():
bedTempOffset = None bedTempOffset = None
result = {} result = {}
if self._temp is not None:
for tool in self._temp.keys(): for tool in self._temp.keys():
result["tool%d" % tool] = { result["tool%d" % tool] = {
"actual": self._temp[tool][0], "actual": self._temp[tool][0],