Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 245 Bytes

TRY201.md

File metadata and controls

23 lines (17 loc) · 245 Bytes

TRY201 - Verbose reraise

Why is it bad

It's verbose and unrequired.

How it looks like

try:
    ...
except CustomException as ex:
    raise ex

How it should be

try:
    ...
except CustomException:
    raise