Skip to content

local variable 'pic_title' referenced before assignment #342

@Saidgurbuz

Description

@Saidgurbuz

In

chart_data=table_data, title=pic_title

we get the error of local variable 'pic_title' referenced before assignment, since pic_title is not defined in outer block.

which is defined and used in the previous if block as below

pic_title = "picture"
if chart_type is not None:
pic.annotations.append(
PictureClassificationData(
provenance="load_from_doctags",
predicted_classes=[
# chart_type
PictureClassificationClass(
class_name=chart_type, confidence=1.0
)
],
)
)
pic_title = chart_type

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions