re: https://github.com/frappe/frappe/pull/25007/files#diff-076c220e1d62b578715d96ada137fcba4da60638132563ec9754685f54bbe02cL50