From 1ea4357e3f18fbadbceaa8fcba04d22c8fc50b22 2015-05-31 21:59:13
From: Tianhui Michael Li <tianhuil@cs.princeton.edu>
Date: 2015-05-31 21:59:13
Subject: [PATCH] Reprising caught error

---

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)