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

Method show_usage_error

IPython/core/interactiveshell.py:1991–1996  ·  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

1989 return etype, value, tb
1990
1991 def show_usage_error(self, exc):
1992 """Show a short message for UsageErrors
1993
1994 These are special exceptions that shouldn't show a traceback.
1995 """
1996 print("UsageError: %s" % exc, file=sys.stderr)
1997
1998 def get_exception_only(self, exc_tuple=None):
1999 """

Callers 1

showtracebackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected