Ignore misplaced-bare-raise warnings in tests (#119403)

This commit is contained in:
epenet 2024-06-11 17:59:54 +02:00 committed by GitHub
parent 7388271689
commit 9e8f9abbf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -898,7 +898,7 @@ def fail_on_log_exception(
return return
def log_exception(format_err, *args): def log_exception(format_err, *args):
raise raise # pylint: disable=misplaced-bare-raise
monkeypatch.setattr("homeassistant.util.logging.log_exception", log_exception) monkeypatch.setattr("homeassistant.util.logging.log_exception", log_exception)