Changed `raise Exception` to `frappe.throw`