Skip to content

Commit d0d426c

Browse files
Add project preference for TRY400
1 parent eec5792 commit d0d426c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ ignore = [
9797
"TC006", # Add quotes to type expression in typing.cast()
9898
"TD002", # Missing auther in TODO
9999
"TD003", # Missing issue link TODO
100+
"TRY400", # Use `logging.exception` instead of `logging.error`
100101

101102
# TODO: Temporary ignores, to review
102103
"ANN001", # Missing type annotation for function argument
@@ -119,7 +120,6 @@ ignore = [
119120
"TRY003", # Avoid specifying long messages outside the exception class
120121
"TRY004", # Prefer `TypeError` exception for invalid type
121122
"TRY300", # Consider moving this statement to an `else` block
122-
"TRY400", # Use `logging.exception` instead of `logging.error`
123123
]
124124

125125

0 commit comments

Comments
 (0)