Show More
@@ -477,8 +477,13 b' class ZMQTerminalInteractiveShell(TerminalInteractiveShell):' | |||||
477 | # asynchronously by signal handlers, for example. |
|
477 | # asynchronously by signal handlers, for example. | |
478 | self.showtraceback() |
|
478 | self.showtraceback() | |
479 | else: |
|
479 | else: | |
480 | self.input_splitter.push(line) |
|
480 | try: | |
481 |
|
|
481 | self.input_splitter.push(line) | |
|
482 | more = self.input_splitter.push_accepts_more() | |||
|
483 | except SyntaxError: | |||
|
484 | # Run the code directly - run_cell takes care of displaying | |||
|
485 | # the exception. | |||
|
486 | more = False | |||
482 | if (self.SyntaxTB.last_syntax_error and |
|
487 | if (self.SyntaxTB.last_syntax_error and | |
483 | self.autoedit_syntax): |
|
488 | self.autoedit_syntax): | |
484 | self.edit_syntax_error() |
|
489 | self.edit_syntax_error() |
General Comments 0
You need to be logged in to leave comments.
Login now