Commit e2357bb4 by Őry Máté

school: fix http500 for nonaffiliated eduid users

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