Skip to content

Commit

Permalink
refactor: all raise comment-not-found
Browse files Browse the repository at this point in the history
  • Loading branch information
Topology2333 committed Nov 10, 2023
1 parent a1ffe30 commit 124bc72
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 @@ -320,7 +320,7 @@ def get(self, request, id) -> JsonResponse: # 注意没有使用request,位

me = {"is_liked": is_liked, "is_author": is_author}

except Comment.DoesNotExist:
except:
raise CommentNotFoundException(id)

return JsonResponse({"comment": comment_all(comment), "me": me}, status=200)
Expand Down

0 comments on commit 124bc72

Please sign in to comment.