mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 20:40:18 +00:00
Use literal string interpolation in integrations B-D (f-strings) (#26378)
This commit is contained in:
committed by
Pascal Vizeli
parent
105461edb5
commit
6a24d893c8
@@ -157,7 +157,7 @@ def _process_cloud_exception(exc, where):
|
||||
err_info = _CLOUD_ERRORS.get(exc.__class__)
|
||||
if err_info is None:
|
||||
_LOGGER.exception("Unexpected error processing request for %s", where)
|
||||
err_info = (502, "Unexpected error: {}".format(exc))
|
||||
err_info = (502, f"Unexpected error: {exc}")
|
||||
return err_info
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user