def dehydrate_resource_uri(self, bundle):
        """
        For the automatically included ``resource_uri`` field, dehydrate
        the URI for the given bundle.

        Returns empty string if no URI can be generated.
        """
        try:
            return self.get_resource_uri(bundle)
        except __HOLE__:
            return ''
        except NoReverseMatch:
            return ''
dataset/ETHPy150Open toastdriven/piecrust/piecrust/resources.py/Resource.dehydrate_resource_uri