Skip to content

Commit

Permalink
pass UnauthorizedException
Browse files Browse the repository at this point in the history
  • Loading branch information
Topology2333 committed Nov 13, 2023
1 parent fce79ab commit 48fbebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hinghwa-dict-backend/article/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def get(self, request, id) -> JsonResponse:

me = {"is_liked": is_liked, "is_author": is_author}
except UnauthorizedException:
return JsonResponse({"comment": comment_all(comment), "me": me}, status=401)
pass
except Comment.DoesNotExist:
raise CommentNotFoundException(id)

Expand Down

0 comments on commit 48fbebf

Please sign in to comment.