fix: bad strings format for command get-untraslated (#34361)
* fix: bad string foramt
* fix: bad string format
* fix: pre-commit format
---------
Co-authored-by: Anand Baburajan <anandbaburajan@gmail.com>
diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py
index 2608c03..005a2f1 100644
--- a/erpnext/accounts/utils.py
+++ b/erpnext/accounts/utils.py
@@ -455,7 +455,9 @@
try:
doc.validate_total_debit_and_credit()
except Exception as validation_exception:
- raise frappe.ValidationError(_(f"Validation Error for {doc.name}")) from validation_exception
+ raise frappe.ValidationError(
+ _("Validation Error for {0}").format(doc.name)
+ ) from validation_exception
doc.save(ignore_permissions=True)
# re-submit advance entry