Skip to content

Commit ceb616d

Browse files
committed
remove comment empty validation when update an existing comment
1 parent 612c2a8 commit ceb616d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mtv/resources/comment.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def put(self, comment_id):
7474
text = request.form['text']
7575

7676
# validate
77-
if text is None or text == '':
78-
LOGGER.exception('Error updating comment. Lack of comment content.')
79-
return {'message': 'Lack of comment content.'}, 400
77+
# if text is None or text == '':
78+
# LOGGER.exception('Error updating comment. Lack of comment content.')
79+
# return {'message': 'Lack of comment content.'}, 400
8080

8181
# get data from db
8282
try:

0 commit comments

Comments
 (0)