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

Method xmode_switch_err

IPython/core/magics/execution.py:507–509  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

505 # Switch exception reporting mode for this one call.
506 # Ensure it is switched back.
507 def xmode_switch_err(name):
508 warn('Error changing %s exception modes.\n%s' %
509 (name,sys.exc_info()[1]))
510
511 new_mode = s.strip().capitalize()
512 original_mode = interactive_tb.mode

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected