mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-10 18:23:01 -04:00
As of https://github.com/python/cpython/commit/041d8b48a2e59fa642b2c5124d78086baf74e339 it’s not valid to call `random.choices` without giving at least one of the options a positive weighting. This makes sense, because giving a zero weighting is effectively saying ‘theres’s only one choice, but don’t choose it’. In our codebase this is applicable where there’s only one international provider, which we want to use even when it’s been de-prioritised for domestic SMS. This doesn’t cause a problem now, but will if we upgrade to Python versions greater than 3.9.0.