fix(radius): the getters raise when the firewall does not answer (#49) #50

Merged
christianmanivong merged 1 commits from fix/radius-read-errors into main 2026-11-15 19:24:02 +00:00
1 Commits
Author SHA1 Message Date
Christian Manivong 9c31afd5d7 fix(radius): the getters raise when the firewall does not answer (#49)
driver / standard (pull_request) Failing after 17s
driver / lint (pull_request) Successful in 14s
driver / types (pull_request) Successful in 1m0s
driver / test (3.13) (pull_request) Successful in 1m0s
driver / test (3.12) (pull_request) Successful in 1m12s
driver / lowest (pull_request) Successful in 32s
driver / build (pull_request) Successful in 29s
driver / security (pull_request) Successful in 1m3s
CI / driver (pull_request) Failing after 2m21s
driver / publish (pull_request) Skipped
get_radius_clients() and get_radius_users() caught every exception and
returned [], so a caller could not tell no entries from no answer. netOrk
asks them whether an entry whose add was cut off is on the firewall, and an
empty list would have made it forget a NAS client still live there. Both now
raise for a failed request or an answer without rows; an empty list is the
firewall's answer, which RADIUS_READS_RAISE = True declares. A saved add
whose id lookup fails still answers success, with no id.

Closes #49
2026-11-15 19:02:08 +01:00