File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3282,9 +3282,9 @@ def error_before_exec(value):
32823282 if store_history :
32833283 if self .history_manager :
32843284 # Store formatted traceback and error details
3285- self .history_manager .exceptions [
3286- self .execution_count
3287- ] = self . _format_exception_for_storage ( value )
3285+ self .history_manager .exceptions [self . execution_count ] = (
3286+ self ._format_exception_for_storage ( value )
3287+ )
32883288 self .execution_count += 1
32893289 result .error_before_exec = value
32903290 self .last_execution_succeeded = False
@@ -3398,9 +3398,9 @@ def error_before_exec(value):
33983398 exec_count = self .execution_count
33993399 if result .error_in_exec :
34003400 # Store formatted traceback and error details
3401- self .history_manager .exceptions [
3402- exec_count
3403- ] = self . _format_exception_for_storage ( result . error_in_exec )
3401+ self .history_manager .exceptions [exec_count ] = (
3402+ self . _format_exception_for_storage ( result . error_in_exec )
3403+ )
34043404
34053405 # Each cell is a *single* input, regardless of how many lines it has
34063406 self .execution_count += 1
You can’t perform that action at this time.
0 commit comments