Skip to content

Commit 93898c9

Browse files
committed
EM101 - Exception must not use a string literal, assign to variable first
1 parent cd045dd commit 93898c9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/pytest/_cli_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def populate_argument_parser(
8989
return None
9090

9191
def invoke_cli_app(self, parsed_cli_args: Namespace) -> ReturnCodeType:
92-
raise PreCommitTerraformExit('sentinel')
92+
msg = 'sentinel'
93+
raise PreCommitTerraformExit(msg)
9394

9495
monkeypatch.setattr(
9596
_cli_parsing_mod,

0 commit comments

Comments
 (0)