##// END OF EJS Templates
catch exceptions on prompts. Close #202.
vivainio -
Show More
@@ -6,7 +6,7 b' Requires Python 2.3 or newer.'
6
6
7 This file contains all the classes and helper functions specific to IPython.
7 This file contains all the classes and helper functions specific to IPython.
8
8
9 $Id: iplib.py 2912 2007-12-30 23:27:09Z vivainio $
9 $Id: iplib.py 2914 2007-12-31 12:53:16Z vivainio $
10 """
10 """
11
11
12 #*****************************************************************************
12 #*****************************************************************************
@@ -1672,12 +1672,18 b' want to merge them back into the new files.""" % locals()'
1672
1672
1673 while not self.exit_now:
1673 while not self.exit_now:
1674 if more:
1674 if more:
1675 prompt = self.hooks.generate_prompt(True)
1675 try:
1676 prompt = self.hooks.generate_prompt(True)
1677 except:
1678 self.showtraceback()
1676 if self.autoindent:
1679 if self.autoindent:
1677 self.rl_do_indent = True
1680 self.rl_do_indent = True
1678
1681
1679 else:
1682 else:
1680 prompt = self.hooks.generate_prompt(False)
1683 try:
1684 prompt = self.hooks.generate_prompt(False)
1685 except:
1686 self.showtraceback()
1681 try:
1687 try:
1682 line = self.raw_input(prompt,more)
1688 line = self.raw_input(prompt,more)
1683 if self.exit_now:
1689 if self.exit_now:
General Comments 0
You need to be logged in to leave comments. Login now