mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 07:51:16 -04:00
tools/kvm_stat: catch curses exceptions only
The previous version was catching all exceptions, including SIGINT. We only want to catch the curses exceptions here. Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.vnet.ibm.com> Reviewed-by: Sascha Silbe <silbe@linux.vnet.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
a0b4e6a032
commit
9fc0adfc42
@@ -809,7 +809,7 @@ class Tui(object):
|
||||
# return from C start_color() is ignorable.
|
||||
try:
|
||||
curses.start_color()
|
||||
except:
|
||||
except curses.error:
|
||||
pass
|
||||
|
||||
# Hide cursor in extra statement as some monochrome terminals
|
||||
|
||||
Reference in New Issue
Block a user