MCPcopy Create free account
hub / github.com/ipython/ipython / clear_err_state

Method clear_err_state

IPython/core/ultratb.py:1478–1482  ·  view source on GitHub ↗

Return the current error state and clear it

(self)

Source from the content-addressed store, hash-verified

1476 tb_offset=tb_offset, context=context)
1477
1478 def clear_err_state(self):
1479 """Return the current error state and clear it"""
1480 e = self.last_syntax_error
1481 self.last_syntax_error = None
1482 return e
1483
1484 def stb2text(self, stb):
1485 """Convert a structured traceback (a list) to a string."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected