diff --git a/djangoldp/permissions.py b/djangoldp/permissions.py index 97e94f7f1ada2893466d08a5fb13ef1d81865ecb..250a969226cf9119c91484c9e212507d8c4178cd 100644 --- a/djangoldp/permissions.py +++ b/djangoldp/permissions.py @@ -1,6 +1,5 @@ from django.core.exceptions import PermissionDenied from django.db.models.base import ModelBase -from django.urls import Resolver404 from rest_framework.permissions import BasePermission @@ -93,7 +92,7 @@ class LDPPermissions(BasePermission): try: obj = Model.resolve_parent(request.path) model = view.parent_model - except Resolver404: + except: obj = None model = view.model else: