diff --git a/hinghwa-dict-backend/article/views.py b/hinghwa-dict-backend/article/views.py index 686919ff..db037e24 100644 --- a/hinghwa-dict-backend/article/views.py +++ b/hinghwa-dict-backend/article/views.py @@ -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)