fix: dont override local proxies (#16611)

This commit is contained in:
Ankush Menat 2022-04-13 20:44:10 +05:30 committed by GitHub
parent b193194484
commit 2fbf8c905f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ class SystemConsole(Document):
def run(self):
frappe.only_for("System Manager")
try:
frappe.debug_log = []
frappe.local.debug_log = []
if self.type == "Python":
safe_exec(self.console)
self.output = "\n".join(frappe.debug_log)

View file

@ -57,7 +57,7 @@ def getdoc(doctype, name, user=None):
doc.add_seen()
set_link_titles(doc)
if frappe.response.docs is None:
frappe.response = _dict({"docs": []})
frappe.local.response = _dict({"docs": []})
frappe.response.docs.append(doc)