In
https://github.com/softwarepub/hermes/blob/feature/153-refactor-datamodel/src/hermes/model/context_manager.py#L60
the ValueError won't raise because the list index is out of range when you pop the last element.
And the value right now is wrong because the last step was already popped and so it shows the new last step, therefore the step before.
In
https://github.com/softwarepub/hermes/blob/feature/153-refactor-datamodel/src/hermes/model/context_manager.py#L60
the ValueError won't raise because the list index is out of range when you pop the last element.
And the value right now is wrong because the last step was already popped and so it shows the new last step, therefore the step before.