prevent crash on stop
This commit is contained in:
parent
3617f71664
commit
77ce399f4f
|
@ -146,7 +146,9 @@ class State():
|
||||||
self.postload()
|
self.postload()
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.current_phase().exit(self.env)
|
phase = self.current_phase()
|
||||||
|
if phase is not None:
|
||||||
|
phase.exit(self.env)
|
||||||
self.done(message='(concat "Recipe " (recipe-name) " stopped manually")')
|
self.done(message='(concat "Recipe " (recipe-name) " stopped manually")')
|
||||||
|
|
||||||
def loadByName(self, recipe):
|
def loadByName(self, recipe):
|
||||||
|
|
Loading…
Reference in New Issue