diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.py b/erpnext/accounts/doctype/journal_entry/journal_entry.py index 65db883c430..c4367223909 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.py +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.py @@ -912,9 +912,7 @@ class JournalEntry(AccountsController): invoice.doctype, invoice.name, invoice.release_date ) if invoice.release_date - else _("{0} {1} is blocked.").format( - invoice.doctype, invoice.name, invoice.release_date - ) + else _("{0} {1} is blocked.").format(invoice.doctype, invoice.name) ) frappe.throw(msg)