fix: Replace "<br>" with "\n" (#27854)

This commit is contained in:
El-Shafei H. 2024-09-23 09:29:20 +03:00 committed by GitHub
parent d3248612cb
commit 6c210dc9d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -253,7 +253,7 @@ def load_doctype_module(doctype, module=None, prefix="", suffix=""):
doctype_python_modules[key] = frappe.get_module(module_name)
except ImportError as e:
msg = f"Module import failed for {doctype}, the DocType you're trying to open might be deleted."
msg += f"<br> Error: {e}"
msg += f"\nError: {e}"
raise ImportError(msg) from e
return doctype_python_modules[key]