def get_namespace(self):
        try:
            return Namespace.get(self.kwargs['namespace_name'])
        except __HOLE__:
            raise Http404(
                _('Namespace: %s, not found') % self.kwargs['namespace_name']
            )
dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/smart_settings/views.py/NamespaceDetailView.get_namespace