We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9141869 commit 2787649Copy full SHA for 2787649
1 file changed
src/flake8_errmsg/__init__.py
@@ -43,7 +43,7 @@ def __init__(self, max_string_len: int) -> None:
43
def visit_Raise(self, node: ast.Raise) -> None:
44
self.generic_visit(node)
45
match node.exc:
46
- case ast.Call(args=[ast.Constant(value=str(value)), *_]):
+ case ast.Call(args=[ast.Constant(value=str() as value), *_]):
47
if len(value) >= self.max_string_len:
48
self.errors.append(EM101(node))
49
case ast.Call(args=[ast.JoinedStr(), *_]):
0 commit comments