diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index d006279..e422584 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -2722,6 +2722,8 @@ class InteractiveShell(SingletonConfigurable): elif not result.success: break except: + if raise_exceptions: + raise self.showtraceback() warn('Unknown failure executing file: <%s>' % fname)