Use literal string interpolation in integrations B-D (f-strings) (#26378)

This commit is contained in:
Franck Nijhof
2019-09-03 17:09:59 +02:00
committed by Pascal Vizeli
parent 105461edb5
commit 6a24d893c8
52 changed files with 116 additions and 126 deletions

View File

@@ -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