Commit 5877bc78 by Őry Máté

school: fix http500 for nonaffiliated eduid users

parent a8e128f0
......@@ -98,8 +98,10 @@ def login(request):
co.save()
g.save()
affiliation = request.META['affiliation']
try:
affiliation = request.META['affiliation']
except KeyError:
affiliation = ''
if affiliation == '':
affiliation = []
else:
......
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 sign in to comment