File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -36,23 +36,24 @@ def invoke_cli_app(cli_args: list[str]) -> ReturnCodeType:
3636 try :
3737 return invoke_cli_app (parsed_cli_args )
3838 except PreCommitTerraformExit as exit_err :
39- print (f'App exiting: { exit_err !s} ' , file = sys .stderr ) # noqa: T201 FIXME
39+ # T201 - FIXME here and below - we will replace 'print' with logging later
40+ print (f'App exiting: { exit_err !s} ' , file = sys .stderr ) # noqa: T201
4041 raise
4142 except PreCommitTerraformRuntimeError as unhandled_exc :
42- print ( # noqa: T201 FIXME
43+ print ( # noqa: T201
4344 f'App execution took an unexpected turn: { unhandled_exc !s} . '
4445 'Exiting...' ,
4546 file = sys .stderr ,
4647 )
4748 return ReturnCode .ERROR
4849 except PreCommitTerraformBaseError as unhandled_exc :
49- print ( # noqa: T201 FIXME
50+ print ( # noqa: T201
5051 f'A surprising exception happened: { unhandled_exc !s} . Exiting...' ,
5152 file = sys .stderr ,
5253 )
5354 return ReturnCode .ERROR
5455 except KeyboardInterrupt as ctrl_c_exc :
55- print ( # noqa: T201 FIXME
56+ print ( # noqa: T201
5657 f'User-initiated interrupt: { ctrl_c_exc !s} . Exiting...' ,
5758 file = sys .stderr ,
5859 )
You can’t perform that action at this time.
0 commit comments