From 994427709635670bfd4d255c30450ff79d3d64d4 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 8 Sep 2022 13:49:13 -0400 Subject: [PATCH] Handle null lines that were removed, don't error on bad $size --- piker/ui/_position.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piker/ui/_position.py b/piker/ui/_position.py index 98e18506..c2b4141e 100644 --- a/piker/ui/_position.py +++ b/piker/ui/_position.py @@ -261,7 +261,7 @@ class SettingsPane: log.error( f'limit must > then current pp: {dsize}' ) - raise ValueError + return False alloc.currency_limit = value @@ -602,8 +602,8 @@ class Nav(Struct): ''' if self.lines: for key, line in self.lines.items(): - return line.value() - + if line: + return line.value() return 0 def iter_ui_elements(self) -> tuple[