Upgrade ruff to 0.0.285 (#98647)

This commit is contained in:
Ville Skyttä
2023-08-19 15:17:17 +03:00
committed by GitHub
parent f318063a77
commit 3094991236
39 changed files with 109 additions and 119 deletions

View File

@@ -122,10 +122,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
try:
await hass.async_add_executor_job(manager.authenticate)
except upcloud_api.UpCloudAPIError:
_LOGGER.error("Authentication failed", exc_info=True)
_LOGGER.exception("Authentication failed")
return False
except requests.exceptions.RequestException as err:
_LOGGER.error("Failed to connect", exc_info=True)
_LOGGER.exception("Failed to connect")
raise ConfigEntryNotReady from err
if entry.options.get(CONF_SCAN_INTERVAL):