From 8330b36e58e1a3b4d6c6dec51bd3aeb643752f82 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 10 Jul 2023 17:44:30 -0400 Subject: [PATCH] User/return explicit `symcache` var name in sync case --- piker/data/_symcache.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/piker/data/_symcache.py b/piker/data/_symcache.py index 79f00223..8962af17 100644 --- a/piker/data/_symcache.py +++ b/piker/data/_symcache.py @@ -318,9 +318,10 @@ def get_symcache( return symcache try: - cache: SymbologyCache = trio.run(sched_gen_symcache) + symcache: SymbologyCache = trio.run(sched_gen_symcache) + assert symcache except BaseException: import pdbp pdbp.xpm() - return cache + return symcache