Skip to content

Commit

Permalink
fix: wrong reference to 302 instead of 203
Browse files Browse the repository at this point in the history
  • Loading branch information
guilatrova committed May 18, 2023
1 parent 8e739b0 commit 8826ded
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/violations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
| [TRY200](TRY200.md) | Use `raise Exception from` |
| [TRY201](TRY201.md) | Simply use `raise` |
| [TRY202](TRY202.md) | Don't ignore a broad exception without even logging |
| [TRY203](TRY203.md) | Useless try-except |

## `TRY3xx` - Try blocks

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

## `TRY4xx` - Logging usage

Expand Down
2 changes: 1 addition & 1 deletion docs/violations/TRY302.md → docs/violations/TRY203.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `TRY302` - Useless `except` block
# `TRY203` - Useless `except` block

## Why is it bad

Expand Down
2 changes: 1 addition & 1 deletion src/tryceratops/violations/codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"TRY200",
"TRY201",
"TRY202",
"TRY203",
"TRY300",
"TRY301",
"TRY302",
"TRY400",
"TRY401",
}

0 comments on commit 8826ded

Please sign in to comment.