def run(self, ctx):
<EOL>if ctx.reverse:<EOL><INDENT>self.engine.reverse()<EOL><DEDENT>if self.engine.empty:<EOL><INDENT>raise AssertionError('<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>return self.run_assertions(ctx)<EOL><DEDENT>except Exception as _err:<EOL><INDENT>if getattr(_err, '<STR_LIT>', False):<EOL><INDENT>raise _err<EOL><DEDENT>return self.render_error(ctx, _err)<EOL><DEDENT>
Runs the current phase.