fix(error-report): Use error_report_email from config instead of hooks

This commit is contained in:
Aditya Hase 2019-06-06 00:00:17 +05:30
parent 200cc87677
commit 7b3304d7d7
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ def get_bootinfo():
bootinfo.lang = text_type(bootinfo.lang)
bootinfo.versions = {k: v['version'] for k, v in get_versions().items()}
bootinfo.error_report_email = frappe.get_hooks("error_report_email")
bootinfo.error_report_email = frappe.conf.error_report_email
bootinfo.calendars = sorted(frappe.get_hooks("calendars"))
bootinfo.treeviews = frappe.get_hooks("treeviews") or []
bootinfo.lang_dict = get_lang_dict()

View file

@ -431,7 +431,7 @@ frappe.request.report_error = function(xhr, request_opts) {
}
if (exc) {
var error_report_email = (frappe.boot.error_report_email || []).join(", ");
var error_report_email = frappe.boot.error_report_email;
request_opts = frappe.request.cleanup_request_opts(request_opts);