code: def get_listener(name):
      '''
      Return the listener class.
      '''
      try:
          log.debug('Using %s as listener', name)
          return LISTENER_LOOKUP[name]
      except KeyError:
          msg = 'Listener {} is not available. Are the dependencies installed?'.format(name)
          log.error(msg, exc_info=True)
          raise InvalidListenerException(msgf get_listener(name):
      '''
      Return the listener class.
      '''
      try:
          log.debug('Using %s as listener', name)
          return LISTENER_LOOKUP[name]
      except KeyError:
          msg = 'Listener {} is not available. Are the dependencies installed?'.format(name)
          log.error(msg, exc_info=True)
          raise InvalidListenerException(msg)
docs: Return the listener class.