raise not inside exception block
Bug #1528539 reported by
John Vandenberg
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
`raise` without any arguments inside an exception block can re-raise the exception.
outside an exception block it causes the following on at least 2.7:
TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType
To post a comment you must log in.
Fix PR: https:/ /github. com/pyflakes/ pyflakes/ pull/57