mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Add first batch of Ruff PT rules (#113665)
* Add first batch of Ruff PT rules * fix weather test * Fix pilight test * Update test_intent.py * Update pilight test_init.py * Update test_init.py
This commit is contained in:
@ -645,7 +645,7 @@ def retryable_database_job(
|
||||
return job(instance, *args, **kwargs)
|
||||
except OperationalError as err:
|
||||
if _is_retryable_error(instance, err):
|
||||
assert isinstance(err.orig, BaseException)
|
||||
assert isinstance(err.orig, BaseException) # noqa: PT017
|
||||
_LOGGER.info(
|
||||
"%s; %s not completed, retrying", err.orig.args[1], description
|
||||
)
|
||||
@ -691,7 +691,7 @@ def database_job_retry_wrapper(
|
||||
instance, err
|
||||
):
|
||||
raise
|
||||
assert isinstance(err.orig, BaseException)
|
||||
assert isinstance(err.orig, BaseException) # noqa: PT017
|
||||
_LOGGER.info(
|
||||
"%s; %s failed, retrying", err.orig.args[1], description
|
||||
)
|
||||
|
Reference in New Issue
Block a user