def emulate(self, instruction):
<EOL>while True:<EOL><INDENT>self._should_try_again = False<EOL>self._to_raise = None<EOL>self._step(instruction)<EOL>if not self._should_try_again:<EOL><INDENT>break<EOL><DEDENT><DEDENT>
Wrapper that runs the _step function in a loop while handling exceptions