From 25ac6e6665d7026c4ecaab0ccfbfa7d8b33c3593 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 21 Sep 2022 14:33:17 -0400 Subject: [PATCH] Soft pop lines, handle error-cancel races --- piker/ui/_editors.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/piker/ui/_editors.py b/piker/ui/_editors.py index 87e6b36d..cc89fb78 100644 --- a/piker/ui/_editors.py +++ b/piker/ui/_editors.py @@ -201,7 +201,6 @@ class LineEditor(Struct): for lines in list(self._order_lines.values()): all_lines.extend(lines) - # return tuple(self._order_lines.values()) return all_lines def remove_line( @@ -217,7 +216,7 @@ class LineEditor(Struct): ''' # try to look up line from our registry - lines = self._order_lines.pop(uuid) + lines = self._order_lines.pop(uuid, None) if lines: cursor = self.godw.get_cursor() if cursor: