Commit 11de8af
fix(seer): Guard token creation against None/AnonymousUser
create_explorer_api_token expects a real user, but self.user can be
None or AnonymousUser. Skip token creation in those cases.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 593d1b1 commit 11de8af
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
| 277 | + | |
276 | 278 | | |
277 | 279 | | |
278 | 280 | | |
| |||
380 | 382 | | |
381 | 383 | | |
382 | 384 | | |
| 385 | + | |
| 386 | + | |
383 | 387 | | |
384 | 388 | | |
385 | 389 | | |
| |||
0 commit comments