소스 검색

fix: respect Accept headers during maintenance mode #18057 (#18063)

(cherry picked from commit 022df94711)

Co-authored-by: Ankush Menat <ankush@frappe.io>
version-14
mergify[bot] 2 년 전
committed by GitHub
부모
커밋
f6661cbfa0
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      frappe/app.py

+ 3
- 3
frappe/app.py 파일 보기

@@ -83,9 +83,6 @@ def application(request: Request):
except HTTPException as e:
return e

except frappe.SessionStopped as e:
response = frappe.utils.response.handle_session_stopped()

except Exception as e:
response = handle_exception(e)

@@ -228,6 +225,9 @@ def handle_exception(e):
# if the request is ajax, send back the trace or error message
response = frappe.utils.response.report_error(http_status_code)

elif isinstance(e, frappe.SessionStopped):
response = frappe.utils.response.handle_session_stopped()

elif (
http_status_code == 500
and (frappe.db and isinstance(e, frappe.db.InternalError))


불러오는 중...
취소
저장