Handle null lines that were removed, don't error on bad $size

history_view
Tyler Goodlet 2022-09-08 13:49:13 -04:00
parent f9dc5637fa
commit 9944277096
1 changed files with 3 additions and 3 deletions

View File

@ -261,7 +261,7 @@ class SettingsPane:
log.error( log.error(
f'limit must > then current pp: {dsize}' f'limit must > then current pp: {dsize}'
) )
raise ValueError return False
alloc.currency_limit = value alloc.currency_limit = value
@ -602,8 +602,8 @@ class Nav(Struct):
''' '''
if self.lines: if self.lines:
for key, line in self.lines.items(): for key, line in self.lines.items():
if line:
return line.value() return line.value()
return 0 return 0
def iter_ui_elements(self) -> tuple[ def iter_ui_elements(self) -> tuple[