소스 검색

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

tags/0.7.0
lichao 1 년 전
부모
커밋
13d061911b
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      api/controllers/service_api/app/message.py

+ 1
- 1
api/controllers/service_api/app/message.py 파일 보기

except services.errors.message.MessageNotExistsError: except services.errors.message.MessageNotExistsError:
raise NotFound("Message Not Exists.") raise NotFound("Message Not Exists.")
except SuggestedQuestionsAfterAnswerDisabledError: except SuggestedQuestionsAfterAnswerDisabledError:
raise BadRequest("Message Not Exists.")
raise BadRequest("Suggested Questions Is Disabled.")
except Exception: except Exception:
logging.exception("internal server error.") logging.exception("internal server error.")
raise InternalServerError() raise InternalServerError()

Loading…
취소
저장