We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6687da9 commit 6eb082aCopy full SHA for 6eb082a
1 file changed
src/pre_commit_terraform/terraform_docs_replace.py
@@ -109,8 +109,10 @@ def invoke_cli_app(parsed_cli_args: Namespace) -> ReturnCodeType: # noqa: WPS23
109
subprocess.check_call(' '.join(proc_args), shell=True) # noqa: S602
110
# PERF203 - try-except shouldn't be in a loop, but it's deprecated
111
# hook, so leave as is
112
- except subprocess.CalledProcessError as err: # noqa: PERF203
113
- # T201 - Leave print statement as is, as this is deprecated hook
114
- print(err) # noqa: T201,WPS421
+ # WPS111 - Too short var name, but it's deprecated hook, so leave as is
+ except subprocess.CalledProcessError as e: # noqa: PERF203,WPS111
+ # T201,WPS421 - Leave print statement as is, as this is
115
+ # deprecated hook
116
+ print(e) # noqa: T201,WPS421,WPS111
117
retval = ReturnCode.ERROR
118
return retval
0 commit comments