WifiManager: safeguard an error response (#37182)

safeguard
This commit is contained in:
Shane Smiskol
2026-02-11 23:14:38 -08:00
committed by GitHub
parent 13b71b4e81
commit a46007d84d

View File

@@ -661,7 +661,13 @@ class WifiManager:
for active_conn in self._get_active_connections():
conn_addr = DBusAddress(active_conn, bus_name=NM, interface=NM_ACTIVE_CONNECTION_IFACE)
props = self._router_main.send_and_get_reply(Properties(conn_addr).get_all()).body[0]
reply = self._router_main.send_and_get_reply(Properties(conn_addr).get_all())
if reply.header.message_type == MessageType.error:
cloudlog.warning(f"Failed to get active connection properties for {active_conn}: {reply}")
continue
props = reply.body[0]
if props.get('Type', ('s', ''))[1] == '802-11-wireless':
# IPv4 address