def _safe_escape(self, expression, default):
        try:
            return expression()
        except __HOLE__:
            return default
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/hqwebapp/views.py/CRUDPaginatedViewMixin._safe_escape