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

This commit is contained in:
lichao 2024-08-13 15:17:18 +08:00 committed by GitHub
parent 935e72d449
commit 13d061911b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()