diff --git a/seahub/api2/endpoints/review_comments.py b/seahub/api2/endpoints/review_comments.py index 4d3c4c1fec..2d7a5f20fb 100644 --- a/seahub/api2/endpoints/review_comments.py +++ b/seahub/api2/endpoints/review_comments.py @@ -190,7 +190,7 @@ class ReviewCommentView(APIView): logger.error(e) return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, 'Internal error.') - if detail is not None: + if detail: try: review_comment.detail = detail review_comment.save()