From 5f47482fa094aa973318a1944e8f34929cc5cf7c 2011-12-06 01:40:56
From: Omar Andres Zapata Mesa <andresete.chaos@gmail.com>
Date: 2011-12-06 01:40:56
Subject: [PATCH] bug fixed in prompt count after traceback

---

diff --git a/IPython/frontend/terminal/frontend.py b/IPython/frontend/terminal/frontend.py
index 736fecc..65d41c2 100755
--- a/IPython/frontend/terminal/frontend.py
+++ b/IPython/frontend/terminal/frontend.py
@@ -154,6 +154,7 @@ class Frontend(object):
 		     print >> sys.stderr, etb[0]
 		     print >> sys.stderr, etb[1]
 		     print >> sys.stderr, etb[2]
+		     self.prompt_count = self.msg_xreq["content"]["execution_count"]+1
                      break
 	   time.sleep(0.1)