Skip to content

Improve detection of unreachable code #519

Closed
@pylint-bot

Description

@pylint-bot

Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore)


def a():
      try:
              return
      except:
              return

      raise Exception('a') # should warn here

Original ticket: http://www.logilab.org/ticket/8355


Metadata

Metadata

Assignees

No one assigned

    Labels

    Control flowRequires control flow understandingFalse Negative 🦋No message is emitted but something is wrong with the codeNeeds PRThis issue is accepted, sufficiently specified and now needs an implementation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions