diff --git a/backend/api/exceptions.py b/backend/api/exceptions.py index a6392ba0..cac3c279 100644 --- a/backend/api/exceptions.py +++ b/backend/api/exceptions.py @@ -18,7 +18,7 @@ class AutoLabelingException(APIException): default_detail = 'Auto labeling not allowed for the document with labels.' -class AutoLabeliingPermissionDenied(PermissionDenied): +class AutoLabelingPermissionDenied(PermissionDenied): default_detail = 'You do not have permission to perform auto labeling.' \ 'Please ask the project administrators to add you.' diff --git a/backend/api/views/auto_labeling.py b/backend/api/views/auto_labeling.py index 32c9da66..ad996215 100644 --- a/backend/api/views/auto_labeling.py +++ b/backend/api/views/auto_labeling.py @@ -16,7 +16,7 @@ from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView -from ..exceptions import (AutoLabeliingPermissionDenied, AutoLabelingException, +from ..exceptions import (AutoLabelingPermissionDenied, AutoLabelingException, AWSTokenError, SampleDataException, TemplateMappingError, URLConnectionError) from ..models import AutoLabelingConfig, Example, Project @@ -234,7 +234,7 @@ class AutoLabelingAnnotation(generics.CreateAPIView): example = self.get_example(project) config = project.auto_labeling_config.first() if not config: - raise AutoLabeliingPermissionDenied() + raise AutoLabelingPermissionDenied() return execute_pipeline( text=example, project_type=project.project_type,