Commit 610ed70
committed
fix(worker): tolerate missing 'payments' key in user.json
Discord users without any past Nitro purchase don't have a 'payments'
field in their user.json export, so user_json['payments'] raises
KeyError. Use .get('payments', []) to skip cleanly.1 parent ab76fa0 commit 610ed70
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
0 commit comments