Merge pull request #1718 from nabinhait/v4-hotfix

Remove blank lines from uploaded file of attendance
diff --git a/erpnext/hr/doctype/upload_attendance/upload_attendance.py b/erpnext/hr/doctype/upload_attendance/upload_attendance.py
index af86eb9..b6e56d0 100644
--- a/erpnext/hr/doctype/upload_attendance/upload_attendance.py
+++ b/erpnext/hr/doctype/upload_attendance/upload_attendance.py
@@ -100,6 +100,7 @@
 	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}