Improve string formatting v5 (#33697)
* Improve string formatting v5 * Address review comments
This commit is contained in:
1 parent
39336d3ea3
commit
fca90a8ddc
46 files changed
+221
-252
No files matched your search
@@ -57,8 +57,8 @@ class AuthPhase:
|
||||
try:
|
||||
msg = AUTH_MESSAGE_SCHEMA(msg)
|
||||
except vol.Invalid as err:
|
||||
error_msg = "Auth message incorrectly formatted: {}".format(
|
||||
humanize_error(msg, err)
|
||||
error_msg = (
|
||||
f"Auth message incorrectly formatted: {humanize_error(msg, err)}"
|
||||
)
|
||||
self._logger.warning(error_msg)
|
||||
self._send_message(auth_invalid_message(error_msg))
|
||||
|
||||
Reference in new issue
Block a user