Index: /WAeUP_SRP/trunk/skins/waeup_student/add_student.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_student/add_student.py	(revision 1418)
+++ /WAeUP_SRP/trunk/skins/waeup_student/add_student.py	(revision 1419)
@@ -48,8 +48,9 @@
     pass
 matric_no = ds.get('matric_no')
-res = context.students_catalog(matric_no = matric_no)
-if res:
-    psm = "Student with matric_no %s exists with Id: %s" % (matric_no,res[0].id)
-    return context.add_student_form(rendered = rendered,
+if matric_no:
+    res = context.students_catalog(matric_no = matric_no)
+    if res:
+        psm = "Student with matric_no %s exists with Id: %s" % (matric_no,res[0].id)
+        return context.add_student_form(rendered = rendered,
                                  psm = psm,
                                  #psm = "%s, %s" % (psm,ds),
