warsztatywww / aplikacjawww

Web application for scientific summer school
https://warsztatywww.pl
GNU Affero General Public License v3.0
5 stars 6 forks source link

Participants view doesn't load if somebody didn't submit the form #630

Closed sentry-io[bot] closed 2 years ago

sentry-io[bot] commented 2 years ago

Sentry Issue: APLIKACJAWWW-2Z

KeyError: [REDACTED user_id]
(2 additional frame(s) were not displayed)
...
  File "django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "wwwapp/views.py", line 656, in participants_view
    return _people_datatable(request, year, participants, all_forms, {
  File "wwwapp/views.py", line 556, in _people_datatable
    answers = [next(filter(lambda a: a.question.pk == question.pk, user_answers[participant.user.pk]), None)
  File "wwwapp/views.py", line 556, in <listcomp>
    answers = [next(filter(lambda a: a.question.pk == question.pk, user_answers[participant.user.pk]), None)