diff --git a/apps/rbac/permissions.py b/apps/rbac/permissions.py index bfcb71cc7..3538246b7 100644 --- a/apps/rbac/permissions.py +++ b/apps/rbac/permissions.py @@ -93,7 +93,7 @@ class RBACPermission(permissions.DjangoModelPermissions): try: queryset = self._queryset(view) model_cls = queryset.model - except AssertionError: + except: model_cls = None return model_cls