eclipse-uprotocol / eclipse-uprotocol/up-transport-zenoh-python
Wrong check of payload.value in invoke_method function
Open
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
Assessment
This issue has not been assessed yet.