mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-09-19 15:59:07 +02:00
Clean up print statements
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user