src/polydatum/context.py
def require(self, key):
        """
        Raises an exception if value for ``key`` is empty.
        """
        value = self.get(key)
        if not value:
            raise ValueError('"{}" is empty.'.format(key))
        return value
def require(self, key):
        value = self.get(key)
        if not value:
            raise ValueError('"{}" is empty.'.format(key))
        return value
def require ( self , key ) : value = self . get ( key ) if not value : raise ValueError ( '"{}" is empty.' . format ( key ) ) return value
Raises an exception if value for ``key`` is empty.
Raises an exception if value for key is empty .