]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add the missing `f` on an f-string error message in multiprocessing. (GH-127462)
authorGregory P. Smith <greg@krypto.org>
Sun, 1 Dec 2024 06:44:43 +0000 (22:44 -0800)
committerGitHub <noreply@github.com>
Sun, 1 Dec 2024 06:44:43 +0000 (06:44 +0000)
Lib/multiprocessing/connection.py

index 996887cb7139428ffabc671cd7252b2da4bfb408..710aba9685efda554351a1dcd419d5e20b1165b8 100644 (file)
@@ -963,7 +963,7 @@ def answer_challenge(connection, authkey: bytes):
                 f'Protocol error, expected challenge: {message=}')
     message = message[len(_CHALLENGE):]
     if len(message) < _MD5ONLY_MESSAGE_LENGTH:
-        raise AuthenticationError('challenge too short: {len(message)} bytes')
+        raise AuthenticationError(f'challenge too short: {len(message)} bytes')
     digest = _create_response(authkey, message)
     connection.send_bytes(digest)
     response = connection.recv_bytes(256)        # reject large message