Skip to content

AttributeError: 'NoneType' object has no attribute 'get' #49

@etienned

Description

@etienned

str_selected = result.get("region_string_stripped")

You call get on result but result can be None sometimes. result is the result of Util.get_current_region_scope function and this function can return None when no region contains selection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions