Add guard in recorder retry function (#80585)

This commit is contained in:
Erik Montnemery
2022-10-19 10:05:55 +02:00
committed by GitHub
parent 31a787558f
commit d1facab71c

View File

@@ -509,6 +509,7 @@ def retryable_database_job(
assert instance.engine is not None
if (
instance.engine.dialect.name == SupportedDialect.MYSQL
and err.orig
and err.orig.args[0] in RETRYABLE_MYSQL_ERRORS
):
_LOGGER.info(