Codacy corrections

This commit is contained in:
Charles-Henri Decultot
2018-12-13 08:04:05 +00:00
parent 94899981d3
commit cbe63ec418
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ let add_fields_to_mapping_table = function (frm) {
if (!["Section Break", "Column Break"].includes(value.fieldtype)) {
options.push(value.fieldname);
}
})
});
});
frappe.meta.get_docfield("Bank Transaction Mapping", "bank_transaction_field",

View File

@@ -109,7 +109,7 @@ def add_account_subtype(account_subtype):
"doctype": "Account Subtype",
"account_subtype": account_subtype
}).insert()
except:
except Exception:
frappe.throw(frappe.get_traceback())
@frappe.whitelist()