From 64d8cd448f667458df9cdbec55c175ecb7a48d0b Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 1 Jul 2022 16:12:09 -0400 Subject: [PATCH] Right, handle brand-new pp case.. --- piker/pp.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/piker/pp.py b/piker/pp.py index 5a953e0d..0769982b 100644 --- a/piker/pp.py +++ b/piker/pp.py @@ -629,7 +629,12 @@ def load_pps_from_toml( # index clears entries in "object" form by tid in a top # level dict instead of a list (as is presented in our # ``pps.toml``). - clears = pp_objs[bsuid].clears + pp = pp_objs.get(bsuid) + if pp: + clears = pp.clears + else: + clears = {} + for clears_table in clears_list: tid = clears_table.pop('tid') clears[tid] = clears_table