def __getitem__(self, name):
        """
        Return the value at key ``name``, raises a KeyError if the key
        doesn't exist.
        """
        value = self.get(name)
        if value is not None:
            return value
        raise KeyError(name)

        Return the value at key ``name``, raises a KeyError if the key
        doesn't exist.
        
stackoverflow/venv/lib/python3.6/site-packages/redis/client.py