From 1f3ee826ed195f078d2a0e1057509aa0a858e25f Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Sat, 17 Jan 2026 03:31:48 -0800 Subject: [PATCH] Fix pyright: reportOptionalMemberAccess --- modules/ui_extra_networks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py index a2ba111f3..7eb714022 100644 --- a/modules/ui_extra_networks.py +++ b/modules/ui_extra_networks.py @@ -517,7 +517,10 @@ class ExtraNetworksPage: pass if info is None: info = self.find_info(path) - desc = info.get('description', '') or '' + if not isinstance(info, dict): + self.desc_time += time.time() - t0 + return '' + desc = info.get('description', '') f = HTMLFilter() f.feed(desc) t1 = time.time()