Skip to content

Wrong check of payload.value in invoke_method function #9

@oleg-budylin

Description

@oleg-budylin

Get the data from UPayload

if not payload.value:
    msg = "The data in UPayload should be Data::Value"
    logging.debug(f"{msg}")
    raise UStatus(code=UCode.INVALID_ARGUMENT, message=msg)

payload.value may be empty, so it is better to check with

if payload.value is None:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions