Handle whoami SSL error less strict (#3293)

This commit is contained in:
Pascal Vizeli 2021-11-08 14:40:45 +01:00 committed by GitHub
parent efa5205800
commit 6b76086652
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,9 +45,8 @@ async def retrieve_whoami(
data["timezone"], utc_from_timestamp(float(data["timestamp"]))
)
except aiohttp.ClientConnectorSSLError as err:
except aiohttp.ClientSSLError as err:
# Expired certificate / Date ISSUE
# pylint: disable=bad-exception-context
raise WhoamiSSLError(
f"Whoami service failed with SSL verification: {err!s}", _LOGGER.warning
) from err