Commit c3103c7
authored
fix(nimbus): fix absolute value being called on None (#14262)
Because
- Some metric points do not contain the `point` field and are throwing
errors b/c the current code assumes otherwise
- The issue here is that `abs()` is attempting to be called on these
values which throw errors when `point` is None
This commit
- Adds a guard to check if the accessed point is None before calling
`abs`
Fixes #142401 parent dc46688 commit c3103c7
File tree
3 files changed
+9
-1
lines changed- experimenter/experimenter
- experiments
- nimbus_ui
- templatetags
- tests
3 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1538 | 1538 | | |
1539 | 1539 | | |
1540 | 1540 | | |
1541 | | - | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
1542 | 1544 | | |
1543 | 1545 | | |
1544 | 1546 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
| 339 | + | |
338 | 340 | | |
339 | 341 | | |
340 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| |||
0 commit comments