Skip to content

Cannot update tags due to a bug #215

@graysonarts

Description

@graysonarts

From resource_tagger.py

        try:
            server_response = self.put_request(url, add_req)
        except ServerResponseError as e:
            if e.code == "404003":
                error = "Adding tags to this resource type is only available with REST API version 2.6 and later."
                raise EndpointUnavailableError(error)

        return TagItem.from_response(server_response.content)

The last line should be immediately after the put_request, otherwise, we can get a uninitialized variable error on server_response on a non404003 error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions