---
source: crates/ruff_linter/src/rules/tryceratops/mod.rs
---
TRY201 [*] Use `raise` without specifying exception name
  --> TRY201.py:20:15
   |
18 |     except MyException as e:
19 |         logger.exception("process failed")
20 |         raise e
   |               ^
   |
help: Remove exception name
   |
19 |         logger.exception("process failed")
   -         raise e
20 +         raise
21 |
   |
note: This is an unsafe fix and may change runtime behavior

TRY201 [*] Use `raise` without specifying exception name
  --> TRY201.py:63:19
   |
61 |         logger.exception("process failed")
62 |         if True:
63 |             raise e
   |                   ^
   |
help: Remove exception name
   |
62 |         if True:
   -             raise e
63 +             raise
64 |
   |
note: This is an unsafe fix and may change runtime behavior

TRY201 [*] Use `raise` without specifying exception name
  --> TRY201.py:74:23
   |
73 |             def foo():
74 |                 raise e
   |                       ^
   |
help: Remove exception name
   |
73 |             def foo():
   -                 raise e
74 +                 raise
   |
note: This is an unsafe fix and may change runtime behavior
