[fixes] code cleanup

This commit is contained in:
Saurabh
2016-01-11 16:50:05 +05:30
parent 3ade883fd9
commit cbebb4b8ba
9 changed files with 162 additions and 58 deletions

View File

@@ -124,7 +124,7 @@ def create_bank_account(args):
"account_type": "Bank",
})
try:
bank_account.insert()
return bank_account.insert()
except RootNotEditable:
frappe.throw(_("Bank account cannot be named as {0}").format(args.get("bank_account")))