From c0ba8346efb8e49b743c9831ce2f0aa12b4037f6 2021-06-28 19:46:27 From: Blazej Michalik <6691643+MrMino@users.noreply.github.com> Date: 2021-06-28 19:46:27 Subject: [PATCH] Merge pull request #13034 from meeseeksmachine/auto-backport-of-pr-13033-on-7.x Backport PR #13033 on branch 7.x (Fix typo in excepthook docstring) --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index 965e372..22c6c31 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -1956,7 +1956,7 @@ class InteractiveShell(SingletonConfigurable): sys.excepthook themselves. I guess this is a feature that enables them to keep running after exceptions that would otherwise kill their mainloop. This is a bother for IPython - which excepts to catch all of the program exceptions with a try: + which expects to catch all of the program exceptions with a try: except: statement. Normally, IPython sets sys.excepthook to a CrashHandler instance, so if