Просмотр исходного кода

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

lichao месяцев назад: 9
Родитель
Сommit
13d061911b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api/controllers/service_api/app/message.py

+ 1 - 1
api/controllers/service_api/app/message.py

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