Clean up print statements

This commit is contained in:
Manuel83
2017-10-13 21:50:07 +02:00
parent 7779d00db3
commit a265d3a8cc
16 changed files with 63 additions and 59 deletions
+2 -2
View File
@@ -159,7 +159,7 @@ class FermenterView(BaseView):
def toggle(self, id):
fermenter = cbpi.cache.get(self.cache_key)[id]
try:
print fermenter.state
if fermenter.state is False:
# Start controller
if fermenter.logic is not None:
@@ -185,7 +185,7 @@ class FermenterView(BaseView):
cbpi.emit("FERMENTER_CONTROLLER_STOPPED", id=id)
except Exception as e:
print e
cbpi.notify("Toogle Fementer Controller failed", "Pleae check the %s configuration" % fermenter.name,
type="danger", timeout=None)
return ('', 500)