chore: use get() method to get attr

This commit is contained in:
Ejaaz Khan 2025-04-14 11:56:09 +05:30
parent ed6dd8cd5b
commit 5b8dde43bd

View file

@ -76,7 +76,7 @@ def get_context(context) -> PrintContext:
doctype=frappe.form_dict.doctype, document=frappe.form_dict.name, file_type="PDF", method="Print"
)
if print_format.print_format_builder_beta:
if print_format.get("print_format_builder_beta"):
from frappe.utils.weasyprint import get_html
body = get_html(