Skip to content

Commit

Permalink
Apply copilot comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Marishka17 committed Oct 8, 2024
1 parent 1ace06f commit d18480d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cvat/apps/quality_control/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def create(cls, request, view, obj, iam_context):
try:
task = Task.objects.get(id=task_id)
except Task.DoesNotExist as ex:
raise ValidationError(str(ex))
raise ValidationError("The specified task does not exist")

iam_context = get_iam_context(request, task)

Expand Down Expand Up @@ -130,7 +130,7 @@ def get_resource(self):
try:
task = Task.objects.get(id=self.task_id)
except Task.DoesNotExist as ex:
raise ValidationError(str(ex))
raise ValidationError("The specified task does not exist")

if task and task.project:
project = task.project
Expand Down

0 comments on commit d18480d

Please sign in to comment.