Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
akihikokuroda committed Sep 19, 2024
1 parent ec8343f commit eb9c614
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gateway/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,10 @@ def retrieve(self, request, pk=None): # pylint: disable=unused-argument
job = Job.objects.filter(pk=pk).first()
if job is None:
logger.warning("Job [%s] not found", pk)
return Response(status=404)
return Response(
{"message": f"Job [{pk}] was not found."},
status=status.HTTP_404_NOT_FOUND,
)
author = self.request.user
if job.program and job.program.provider:
provider_groups = job.program.provider.admin_groups.all()
Expand Down

0 comments on commit eb9c614

Please sign in to comment.