File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,9 @@ def block_to_dict( # noqa: C901
127127 if block .retry is not None :
128128 d ["retry" ] = expr_to_dict (block .retry , json_compatible )
129129 if block .trace_error_on_retry is not None :
130- d ["trace_error_on_retry" ] = expr_to_dict (block .trace_error_on_retry , json_compatible )
130+ d ["trace_error_on_retry" ] = expr_to_dict (
131+ block .trace_error_on_retry , json_compatible
132+ )
131133 if isinstance (block , StructuredBlock ):
132134 d ["context" ] = block .context
133135
Original file line number Diff line number Diff line change @@ -439,7 +439,10 @@ def process_advanced_block(
439439 raise exc from exc
440440 if do_retry :
441441 error = f"An error occurred in a PDL block. Error details: { err_msg } "
442- print (f"\n \033 [0;31m[Retry { trial_idx + 1 } /{ max_retry } ] { error } \033 [0m\n " , file = sys .stderr )
442+ print (
443+ f"\n \033 [0;31m[Retry { trial_idx + 1 } /{ max_retry } ] { error } \033 [0m\n " ,
444+ file = sys .stderr ,
445+ )
443446 if block .trace_error_on_retry :
444447 scope = set_error_to_scope_for_retry (scope , error , block .pdl__id )
445448 continue
Original file line number Diff line number Diff line change 11import io
2- from contextlib import redirect_stdout , redirect_stderr
2+ from contextlib import redirect_stderr , redirect_stdout
33
44from pdl .pdl import exec_dict
55
You can’t perform that action at this time.
0 commit comments