@@ -194,7 +194,7 @@ async def login(self) -> bool:
194194 except (TimeoutError , ClientConnectorError ) as err :
195195 _LOGGER .exception ("Error during login" )
196196 raise AirOSDeviceConnectionError from err
197- except aiohttp .ClientError as err :
197+ except ( aiohttp .ClientError , Exception ) as err :
198198 _LOGGER .exception ("Unexpected client error during login" )
199199 raise AirOSDeviceConnectionError from err
200200
@@ -313,7 +313,7 @@ async def status(self) -> AirOSData:
313313 except (TimeoutError , ClientConnectorError ) as err :
314314 _LOGGER .exception ("Status API call failed: %s" , err )
315315 raise AirOSDeviceConnectionError from err
316- except aiohttp .ClientError as err :
316+ except ( aiohttp .ClientError , Exception ) as err :
317317 _LOGGER .exception ("Unexpected client error during status API call" )
318318 raise AirOSDeviceConnectionError from err
319319
@@ -355,7 +355,7 @@ async def stakick(self, mac_address: str = None) -> bool:
355355 except (TimeoutError , ClientConnectorError ) as err :
356356 _LOGGER .exception ("Error during call to reconnect remote: %s" , err )
357357 raise AirOSDeviceConnectionError from err
358- except aiohttp .ClientError as err :
358+ except ( aiohttp .ClientError , Exception ) as err :
359359 _LOGGER .exception ("Unexpected client error reconnect request" )
360360 raise AirOSDeviceConnectionError from err
361361
@@ -398,6 +398,6 @@ async def provmode(self, active: bool = False) -> bool:
398398 except (TimeoutError , ClientConnectorError ) as err :
399399 _LOGGER .exception ("Error during call to change provisioning mode: %s" , err )
400400 raise AirOSDeviceConnectionError from err
401- except aiohttp .ClientError as err :
401+ except ( aiohttp .ClientError , Exception ) as err :
402402 _LOGGER .exception ("Unexpected client error changing provisioning mode" )
403403 raise AirOSDeviceConnectionError from err
0 commit comments