Skip to content

Commit 28aad2b

Browse files
authored
Merge branch 'master' into introduce_ruff
2 parents 585571d + e41252b commit 28aad2b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/pre_commit_terraform/_cli.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)