def unsubscribe(self, handler):
        queue_name = handler.queue_name
        try:
            consumer = self.consumers_by_queue[queue_name]
        except KeyError:
            raise KeyError('there is no subscription for %r' % queue_name)
        if consumer.handler != handler:
            raise KeyError((handler, queue_name) % '%s is not subscribed to %r')
        consumer.stop()
        del self.consumers_by_queue[queue_name]
dataset/ETHPy150Open deliveryhero/lymph/lymph/events/kombu.py/KombuEventSystem.unsubscribe/swapped operands of `%`