nats-io / nats.py

Python3 client for NATS
https://nats-io.github.io/nats.py/
Apache License 2.0
874 stars 184 forks source link

KeyValue.keys method should not raise NoKeysError #582

Open skewty opened 2 months ago

skewty commented 2 months ago

Observed behavior

KeyValue.keys method raises NoKeysError if no keys.

Additionally, the docstring does not mention NoKeysError.

Expected behavior

KeyValue.keys method should return empty list if no keys

Server and client version

nats-py 2.8.0

nats-server 2.10.17

Host environment

No response

Steps to reproduce

No response