Show More
@@ -2632,6 +2632,10 b' class InteractiveShell(SingletonConfigurable):' | |||||
2632 | if silent: |
|
2632 | if silent: | |
2633 | store_history = False |
|
2633 | store_history = False | |
2634 |
|
2634 | |||
|
2635 | # If any of our input transformation (input_transformer_manager or | |||
|
2636 | # prefilter_manager) raises an exception, we store it in this variable | |||
|
2637 | # so that we can display the error after logging the input and storing | |||
|
2638 | # it in the history. | |||
2635 | preprocessing_exc_tuple = None |
|
2639 | preprocessing_exc_tuple = None | |
2636 | try: |
|
2640 | try: | |
2637 | # Static input transformations |
|
2641 | # Static input transformations | |
@@ -2661,7 +2665,6 b' class InteractiveShell(SingletonConfigurable):' | |||||
2661 | # Display the exception if input processing failed. |
|
2665 | # Display the exception if input processing failed. | |
2662 | if preprocessing_exc_tuple is not None: |
|
2666 | if preprocessing_exc_tuple is not None: | |
2663 | self.showtraceback(preprocessing_exc_tuple) |
|
2667 | self.showtraceback(preprocessing_exc_tuple) | |
2664 | del preprocessing_exc_tuple # Break reference cycle |
|
|||
2665 | if store_history: |
|
2668 | if store_history: | |
2666 | self.execution_count += 1 |
|
2669 | self.execution_count += 1 | |
2667 | return |
|
2670 | return |
General Comments 0
You need to be logged in to leave comments.
Login now