eclipse-uprotocol / eclipse-uprotocol/up-transport-zenoh-python

Wrong check of payload.value in invoke_method function

Open
#9 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
0
Forks
5
PR merge metrics
No merged PRs in 30d

Description

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:
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.