Commit b2d4400
authored
fix: Handle invalid
Previously, if the environment variable `SENTRY_DEBUG` would have an
invalid value, such as "invalid," we would set `rv["debug"]` to `None`.
However, since this value should be a boolean, it should instead be set
to `False`.
This change ensures that `rv["debug"]` always is a boolean. Where we
previously would have set the value to `None`, we now set it to `False`.
Other behavior remains unchanged.
Ref
https://github.com/getsentry/sentry-python/pull/4366/files#r2075294825SENTRY_DEBUG values properly (#4400)1 parent 9261b2c commit b2d4400
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
0 commit comments