Skip to content

Commit 8826ded

Browse files
committed
fix: wrong reference to 302 instead of 203
1 parent 8e739b0 commit 8826ded

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/violations/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
| [TRY200](TRY200.md) | Use `raise Exception from` |
2323
| [TRY201](TRY201.md) | Simply use `raise` |
2424
| [TRY202](TRY202.md) | Don't ignore a broad exception without even logging |
25+
| [TRY203](TRY203.md) | Useless try-except |
2526

2627
## `TRY3xx` - Try blocks
2728

2829
| Code | Description |
2930
| ------------------- | --------------------------------- |
3031
| [TRY300](TRY300.md) | Consider adding an `else` block |
3132
| [TRY301](TRY301.md) | Avoid direct raises in `try` body |
32-
| [TRY302](TRY302.md) | Useless try-except |
3333

3434
## `TRY4xx` - Logging usage
3535

docs/violations/TRY302.md renamed to docs/violations/TRY203.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `TRY302` - Useless `except` block
1+
# `TRY203` - Useless `except` block
22

33
## Why is it bad
44

src/tryceratops/violations/codes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
"TRY200",
3939
"TRY201",
4040
"TRY202",
41+
"TRY203",
4142
"TRY300",
4243
"TRY301",
43-
"TRY302",
4444
"TRY400",
4545
"TRY401",
4646
}

0 commit comments

Comments
 (0)