Skip to content

Commit

Permalink
IPython console: Improve docstring of SpyderKernelError
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Dec 12, 2024
1 parent c99d044 commit 868cbc8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions spyder/plugins/ipythonconsole/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,12 @@


class SpyderKernelError(RuntimeError):
"""Error to be shown in client."""
pass
"""
Error to be shown in the IPython console.
Notes
-----
* Use this exception if you want to show a nice formatted error in the
current console instead of a long and hard-to-read traceback.
* This should only be used for errors whose cause we are certain of.
"""

0 comments on commit 868cbc8

Please sign in to comment.