diff --git a/dstat_interface/interface/data_view.py b/dstat_interface/interface/data_view.py index 2ef8ff58c2d39646c5b33f835abbb5b029ee03ed..e4bd711f0d2af0f95f9bbda50a591419019644f2 100644 --- a/dstat_interface/interface/data_view.py +++ b/dstat_interface/interface/data_view.py @@ -47,7 +47,12 @@ class DataPage(object): def combobox_changed(self, object): """Switch displayed data buffer.""" - self.textview.set_buffer(self.buffers[self.combobox.get_active_id()]) + try: + self.textview.set_buffer( + self.buffers[self.combobox.get_active_id()] + ) + except KeyError: + pass class InfoPage(object): def __init__(self, notebook, name="Info"):