mirror of
https://github.com/home-assistant/core.git
synced 2025-06-02 12:17:07 +00:00
Add guard in recorder retry function (#80585)
This commit is contained in:
parent
31a787558f
commit
d1facab71c
@ -509,6 +509,7 @@ def retryable_database_job(
|
|||||||
assert instance.engine is not None
|
assert instance.engine is not None
|
||||||
if (
|
if (
|
||||||
instance.engine.dialect.name == SupportedDialect.MYSQL
|
instance.engine.dialect.name == SupportedDialect.MYSQL
|
||||||
|
and err.orig
|
||||||
and err.orig.args[0] in RETRYABLE_MYSQL_ERRORS
|
and err.orig.args[0] in RETRYABLE_MYSQL_ERRORS
|
||||||
):
|
):
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user