style: format code with black
diff --git a/erpnext/education/__init__.py b/erpnext/education/__init__.py
index 56c2b29..f6f84b3 100644
--- a/erpnext/education/__init__.py
+++ b/erpnext/education/__init__.py
@@ -2,10 +2,16 @@
from frappe import _
-class StudentNotInGroupError(frappe.ValidationError): pass
+class StudentNotInGroupError(frappe.ValidationError):
+ pass
+
def validate_student_belongs_to_group(student, student_group):
- groups = frappe.db.get_all('Student Group Student', ['parent'], dict(student = student, active=1))
+ groups = frappe.db.get_all("Student Group Student", ["parent"], dict(student=student, active=1))
if not student_group in [d.parent for d in groups]:
- frappe.throw(_('Student {0} does not belong to group {1}').format(frappe.bold(student), frappe.bold(student_group)),
- StudentNotInGroupError)
+ frappe.throw(
+ _("Student {0} does not belong to group {1}").format(
+ frappe.bold(student), frappe.bold(student_group)
+ ),
+ StudentNotInGroupError,
+ )