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>
This commit is contained in:
Danny
2023-03-17 06:43:32 -04:00
committed by GitHub
parent 2ac079210d
commit ca10e2bb9f
2 changed files with 5 additions and 3 deletions

View File

@@ -455,7 +455,9 @@ def reconcile_against_document(args): # nosemgrep
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