From 1897e75894f642a1e703eb373856e8daea33fecc Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 30 May 2014 14:30:36 +0530 Subject: [PATCH] Remove blank lines from uploaded file of attendance #1714 --- erpnext/hr/doctype/upload_attendance/upload_attendance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/hr/doctype/upload_attendance/upload_attendance.py b/erpnext/hr/doctype/upload_attendance/upload_attendance.py index af86eb97e0..b6e56d0d06 100644 --- a/erpnext/hr/doctype/upload_attendance/upload_attendance.py +++ b/erpnext/hr/doctype/upload_attendance/upload_attendance.py @@ -100,6 +100,7 @@ def upload(): from frappe.modules import scrub rows = read_csv_content_from_uploaded_file() + rows = filter(lambda x: x and any(x), rows) if not rows: msg = [_("Please select a csv file")] return {"messages": msg, "error": msg}