From ec2023a5a3cf1fea666f6c042df8b051e224c562 Mon Sep 17 00:00:00 2001 From: craftingmod Date: Tue, 30 Jun 2026 06:38:06 +0900 Subject: [PATCH] refactor(cnr): fix cache-miss return type consistency to empty list --- glob/cnr_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glob/cnr_utils.py b/glob/cnr_utils.py index 99c2962d..15cc5bb3 100644 --- a/glob/cnr_utils.py +++ b/glob/cnr_utils.py @@ -127,7 +127,7 @@ async def _get_cnr_data(sync_mode=None, dont_wait=True, **kwargs): if dont_wait: if cached_data is not None: return cached_data.get('nodes', []) - return {} + return [] if cached_data is not None and manager_util.get_cache_state(uri, expired_days=1) == 'cached': return cached_data.get('nodes', [])