Commit e1a6d8a
Treat an absent East Asian name order answer as unset
Pretix omits unticked boolean answers from a position's answer list
entirely, rather than sending them with a false value. generate_nickname
subscripted "east_asian_name_order" directly, so any order whose holder
left that checkbox unticked raised KeyError.
The exception escaped to the 500 handler, so /join returned the error
page instead of redirecting into the Discord OAuth2 flow. This affected
every attendee who supplied a name and did not tick the box.
Read the answer with .get() so an absent value falls through to the
default name ordering, which is the intended behaviour when East Asian
name order has not been requested.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 9af158e commit e1a6d8a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments