Skip to content

Commit 7457ea9

Browse files
committed
Rework and bump version
1 parent f9c4f4b commit 7457ea9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

airos/airos8.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "airos"
7-
version = "0.2.8a1"
7+
version = "0.2.8a2"
88
license = "MIT"
99
description = "Ubiquity airOS module(s) for Python 3."
1010
readme = "README.md"

0 commit comments

Comments
 (0)