def get_item(self, name, group=None):
        if not group:
            if not name in self.filters:
                raise KeyError('No item named "%s" exists!' % str(name))
            return self.filters[name]
        else:
            if not group in self.filters:
                raise KeyError('No group named "%s" exists!' % str(group))

            g = self.filters[group]
            if not isinstance(g, self.FilterGroup):
                raise TypeError('Item "%s" is not a filter group!' % str(group))
            if not name in g.filters:
                raise KeyError('No item named "%s" exists!' % str(name))
            return g.filters[name]
Stop a sniffer from capturing, wait for the thread to finish and delete the sniffer.
dataset/ETHPy150Open rproepp/spykeviewer/spykeviewer/plugin_framework/filter_manager.py/FilterManager.get_item--crossover with--dataset/ETHPy150Open dionyziz/rupture/sniffer/sniff.py/delete