Skip to content

LOG014 Gives false positives #18726

@hmvp

Description

@hmvp

Summary

LOG014 should report exc_info=True but also reports on exc_info=(exc_type, exc_value, exc_traceback) which is valid but because it is truthy it reports a lint error.

Besides True and a tuple any instance of BaseException is also valid

Version

ruff 0.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedContributions especially welcomeruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions