Skip to content

raise not inside exception block #240

@pyflakes-bot

Description

@pyflakes-bot

Original report by jayvdb (@jayvdb?) on Launchpad:


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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions