Use literal string interpolation in integrations B-D (f-strings) (#26378)
This commit is contained in:
1 parent
105461edb5
commit
6a24d893c8
52 files changed
+116
-126
No files matched your search
@@ -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