MCPcopy Index your code
hub / github.com/ipython/ipython / show_usage_error

Method show_usage_error

IPython/core/interactiveshell.py:2148–2153  ·  view source on GitHub ↗

Show a short message for UsageErrors These are special exceptions that shouldn't show a traceback.

(self, exc)

Source from the content-addressed store, hash-verified

2146 return etype, value, tb
2147
2148 def show_usage_error(self, exc):
2149 """Show a short message for UsageErrors
2150
2151 These are special exceptions that shouldn't show a traceback.
2152 """
2153 print("UsageError: %s" % exc, file=sys.stderr)
2154
2155 def get_exception_only(self, exc_tuple=None):
2156 """

Callers 1

showtracebackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected