Merge pull request #5184 from achillesrasquinha/fixes
Check if server is alive and let socket.io then request
This commit is contained in:
commit
83e94f6c92
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ def handle_exception(e):
|
|||
http_status_code = getattr(e, "http_status_code", 500)
|
||||
return_as_message = False
|
||||
|
||||
if frappe.local.is_ajax or 'application/json' in frappe.get_request_header('Accept'):
|
||||
if frappe.get_request_header('Accept') and (frappe.local.is_ajax or 'application/json' in frappe.get_request_header('Accept')):
|
||||
# handle ajax responses first
|
||||
# if the request is ajax, send back the trace or error message
|
||||
response = frappe.utils.response.report_error(http_status_code)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue