From 06ab6144b4f73581100fb78a0ef7ac9ab1ab93ee Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 19 Oct 2024 10:16:50 +0200 Subject: [PATCH] Can't kill process. Standalone, Ubuntu 24.04 #2942 --- glances/outputs/glances_curses.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/glances/outputs/glances_curses.py b/glances/outputs/glances_curses.py index 89a14b65..9dc8ab36 100644 --- a/glances/outputs/glances_curses.py +++ b/glances/outputs/glances_curses.py @@ -903,11 +903,14 @@ class _GlancesCurses: return None if popup_type == 'yesno': - # # Create a sub-window for the text field + # Create a sub-window for the text field sub_pop = popup.derwin(1, 2, len(sentence_list) + 1, len(m) + 2) sub_pop.attron(self.colors_list['FILTER']) # Init the field with the current value - sub_pop.addnstr(0, 0, '', 0) + try: + sub_pop.addnstr(0, 0, '', 0) + except curses.error: + pass # Display the popup popup.refresh() sub_pop.refresh()