File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/tryceratops/violations Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
22
| [ TRY200] ( TRY200.md ) | Use ` raise Exception from ` |
23
23
| [ TRY201] ( TRY201.md ) | Simply use ` raise ` |
24
24
| [ TRY202] ( TRY202.md ) | Don't ignore a broad exception without even logging |
25
+ | [ TRY203] ( TRY203.md ) | Useless try-except |
25
26
26
27
## ` TRY3xx ` - Try blocks
27
28
28
29
| Code | Description |
29
30
| ------------------- | --------------------------------- |
30
31
| [ TRY300] ( TRY300.md ) | Consider adding an ` else ` block |
31
32
| [ TRY301] ( TRY301.md ) | Avoid direct raises in ` try ` body |
32
- | [ TRY302] ( TRY302.md ) | Useless try-except |
33
33
34
34
## ` TRY4xx ` - Logging usage
35
35
Original file line number Diff line number Diff line change 1
- # ` TRY302 ` - Useless ` except ` block
1
+ # ` TRY203 ` - Useless ` except ` block
2
2
3
3
## Why is it bad
4
4
Original file line number Diff line number Diff line change 38
38
"TRY200" ,
39
39
"TRY201" ,
40
40
"TRY202" ,
41
+ "TRY203" ,
41
42
"TRY300" ,
42
43
"TRY301" ,
43
- "TRY302" ,
44
44
"TRY400" ,
45
45
"TRY401" ,
46
46
}
You can’t perform that action at this time.
0 commit comments