# HG changeset patch # User Goffi # Date 1658332018 -7200 # Node ID c04f5e8a3568dda016d93b595cd9a7b130a677e1 # Parent 100dd30244c6c7b21dc562e05fca3e903af54d58 plugin pubsub cache: replace empty list by None in `getItemsFromCache`: if an empty list is used, no item can be retrieved, this patch replace empty list by None to avoid this case. diff -r 100dd30244c6 -r c04f5e8a3568 sat/plugins/plugin_pubsub_cache.py --- a/sat/plugins/plugin_pubsub_cache.py Wed Jul 20 17:41:44 2022 +0200 +++ b/sat/plugins/plugin_pubsub_cache.py Wed Jul 20 17:46:58 2022 +0200 @@ -508,7 +508,7 @@ if max_items is None and rsm_request is None: max_items = 20 pubsub_items, metadata = await self.host.memory.storage.getItems( - node, max_items=max_items, item_ids=item_ids, + node, max_items=max_items, item_ids=item_ids or None, order_by=extra.get(C.KEY_ORDER_BY) ) elif max_items is not None: