diff --git a/erpnext/hr/doctype/shift_assignment/shift_assignment.py b/erpnext/hr/doctype/shift_assignment/shift_assignment.py index ace9cb8f26..48d4e570d8 100644 --- a/erpnext/hr/doctype/shift_assignment/shift_assignment.py +++ b/erpnext/hr/doctype/shift_assignment/shift_assignment.py @@ -38,7 +38,7 @@ class ShiftAssignment(Document): def throw_overlap_error(self, d): msg = _("Employee {0} has already applied for {1} on {2} : ").format(self.employee, d['shift_type'], formatdate(d['date'])) \ - + """ {0}""".format(d["name"]) + + """ {0}""".format(d["name"]) frappe.throw(msg, OverlapError) @frappe.whitelist() @@ -77,4 +77,4 @@ def add_assignments(events, start, end, conditions=None): "docstatus": d.docstatus } if e not in events: - events.append(e) \ No newline at end of file + events.append(e)