From 868cbc8074a7d2b91578b53ac447de5da7883a00 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Sun, 8 Dec 2024 13:57:15 -0500 Subject: [PATCH] IPython console: Improve docstring of SpyderKernelError --- spyder/plugins/ipythonconsole/__init__.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/spyder/plugins/ipythonconsole/__init__.py b/spyder/plugins/ipythonconsole/__init__.py index 2ff34ccd29d..de5cf9b96d7 100644 --- a/spyder/plugins/ipythonconsole/__init__.py +++ b/spyder/plugins/ipythonconsole/__init__.py @@ -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. + """