Skip to content

Suggest changed this line to: "if self.stats is None:" #128900

Closed as not planned
Closed as not planned
@Chungwei5

Description

The cprofile.create_stats() might return {}
When self.stats = {}
"if not self.stats:" will be True and exception triggered.
Suggest changed this line to:
"if self.stats is None:"

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions