Commit 115a9404 authored by Ben Waters's avatar Ben Waters

fix null

parent 840c72ce
......@@ -131,7 +131,10 @@ def nextCourses(remainingReqCourses, taken):
nextcourses = []
for course in remainingReqCourses:
reqs = set()
c = Course.objects.get(title=course)
try:
c = Course.objects.get(title=course)
except:
pass
for prereq in c.prerequisites.all():
reqs.add(prereq)
#for coreq in course.coreq:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment