Error Exception Message Of "Message Not Exists.", Should be "Suggested Questions Is Disabled." (#7219)

pull/7231/head
lichao 2 years ago committed by GitHub
parent 935e72d449
commit 13d061911b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -131,7 +131,7 @@ class MessageSuggestedApi(Resource):
except services.errors.message.MessageNotExistsError:
raise NotFound("Message Not Exists.")
except SuggestedQuestionsAfterAnswerDisabledError:
raise BadRequest("Message Not Exists.")
raise BadRequest("Suggested Questions Is Disabled.")
except Exception:
logging.exception("internal server error.")
raise InternalServerError()

Loading…
Cancel
Save