Commit b2d515c
committed
feat: add OTHER category to SocketCategory enum (CE-225)
The Socket backend returns "other" as an alert category. Since v3.0.33
(commit 065407a, #79) the SDK tolerates unknown categories via a
try/except fallback in SocketAlert.from_dict, but that path logs a
warning that confused customers (Anthropic/Buildkite, FINRA/GitLab CI)
into reporting it as a crash.
Add OTHER = "other" so the value is recognized as a first-class category
and the warning no longer fires. The defensive fallback is retained for
any future unknown categories. Bump to 3.2.0 and sync uv.lock.
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>1 parent be87c34 commit b2d515c
5 files changed
Lines changed: 12 additions & 5 deletions
File tree
- socketdev
- fullscans
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| |||
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
49 | | - | |
| 55 | + | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments