End scenes after embed

This commit is contained in:
Grant Sanderson 2020-04-12 09:53:29 -07:00
parent 0b8cb3b6e1
commit 2d0257562f

View file

@ -120,6 +120,8 @@ class Scene(Container):
# Stack depth of 2 means the shell will use # Stack depth of 2 means the shell will use
# the namespace of the caller, not this method # the namespace of the caller, not this method
shell(stack_depth=2) shell(stack_depth=2)
# End scene when exiting an embed.
raise EndSceneEarlyException()
def __str__(self): def __str__(self):
return self.__class__.__name__ return self.__class__.__name__