def get_ops(self, key):
        ''' Returns ops from the key if found otherwise raises a KeyError.
        '''
        ops = self._store.get(key)
        if ops is None:
            raise KeyError(
                'cannot get operations for {}'.format(key))
        return ops
def get_ops ( self , key ) : ops = self . _store . get ( key ) if ops is None : raise KeyError ( 'cannot get operations for {}' . format ( key ) ) return ops
Returns ops from the key if found otherwise raises a KeyError.