Commit 53e4e96
committed
fix: raise LangfuseAuthCheckError instead of bare Exception in auth_check()
auth_check() previously raised a bare Exception when no project was found
for the provided credentials, which is easy to swallow with a broad
`except Exception` at the call site and hides real bugs (issue #906).1 parent 11a232d commit 53e4e96
3 files changed
Lines changed: 48 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
179 | 183 | | |
180 | 184 | | |
181 | 185 | | |
| |||
3474 | 3478 | | |
3475 | 3479 | | |
3476 | 3480 | | |
3477 | | - | |
| 3481 | + | |
3478 | 3482 | | |
3479 | 3483 | | |
3480 | 3484 | | |
| |||
3485 | 3489 | | |
3486 | 3490 | | |
3487 | 3491 | | |
3488 | | - | |
| 3492 | + | |
3489 | 3493 | | |
3490 | 3494 | | |
| 3495 | + | |
3491 | 3496 | | |
3492 | 3497 | | |
3493 | 3498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
0 commit comments