Skip to content

Possible UnboundLocalError error in create-release.py #13498

@rodeka

Description

@rodeka

In the following code:

if len(issues) > 1:
print(f'WARNING: found more than 1 github issues in message: {message}. Issues: {issues}', file=sys.stderr)
message = e.message[:-1] if e.message.endswith('\n') else e.message

The variable message is used before being defined. Most likely, the intention was to use e.message

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions