mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-21 16:16:31 +00:00
Handle whoami SSL error less strict (#3293)
This commit is contained in:
parent
efa5205800
commit
6b76086652
@ -45,9 +45,8 @@ async def retrieve_whoami(
|
|||||||
data["timezone"], utc_from_timestamp(float(data["timestamp"]))
|
data["timezone"], utc_from_timestamp(float(data["timestamp"]))
|
||||||
)
|
)
|
||||||
|
|
||||||
except aiohttp.ClientConnectorSSLError as err:
|
except aiohttp.ClientSSLError as err:
|
||||||
# Expired certificate / Date ISSUE
|
# Expired certificate / Date ISSUE
|
||||||
# pylint: disable=bad-exception-context
|
|
||||||
raise WhoamiSSLError(
|
raise WhoamiSSLError(
|
||||||
f"Whoami service failed with SSL verification: {err!s}", _LOGGER.warning
|
f"Whoami service failed with SSL verification: {err!s}", _LOGGER.warning
|
||||||
) from err
|
) from err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user