Remove 'UnicodeDecodeError' exception in AsusWrt (#59447)

This commit is contained in:
ollo69 2021-11-10 07:53:05 +01:00 committed by GitHub
parent 4273e5b507
commit cde6e007bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -430,7 +430,7 @@ async def _get_nvram_info(api: AsusWrt, info_type: str) -> dict[str, Any]:
info = {}
try:
info = await api.async_get_nvram(info_type)
except (OSError, UnicodeDecodeError) as exc:
except OSError as exc:
_LOGGER.warning("Error calling method async_get_nvram(%s): %s", info_type, exc)
return info