diff options
author | Stefan Raspl <raspl@linux.vnet.ibm.com> | 2017-03-10 13:40:01 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-03-29 12:01:24 +0200 |
commit | 9fc0adfc427a5e3f95f8db8dafabe1eaa3720f4a (patch) | |
tree | 3e0669a5fd1383987bcb569a5b4174588749dcda /tools/kvm | |
parent | a0b4e6a0325e325d91901342dd436d917da0ddd6 (diff) | |
download | linux-9fc0adfc427a5e3f95f8db8dafabe1eaa3720f4a.tar.gz linux-9fc0adfc427a5e3f95f8db8dafabe1eaa3720f4a.tar.bz2 linux-9fc0adfc427a5e3f95f8db8dafabe1eaa3720f4a.zip |
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>
Diffstat (limited to 'tools/kvm')
-rwxr-xr-x | tools/kvm/kvm_stat/kvm_stat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat index 8cc83a309e65..ef47ad749f8a 100755 --- a/tools/kvm/kvm_stat/kvm_stat +++ b/tools/kvm/kvm_stat/kvm_stat @@ -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 |