]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Add the missing `f` on an f-string error message in multiprocessing. (GH-12746...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 1 Dec 2024 07:50:33 +0000 (08:50 +0100)
committerGitHub <noreply@github.com>
Sun, 1 Dec 2024 07:50:33 +0000 (23:50 -0800)
Add the missing `f` on an f-string error message in multiprocessing. (GH-127462)
(cherry picked from commit 11c01092d5fa8f02c867a7f1f3c135ce63db4838)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/multiprocessing/connection.py

index d0582e3cd5406a4c1b7df60d74fbc2e78262220d..fdbc3bda7db7e057532f56cb836c34b0ec03dc9a 100644 (file)
@@ -956,7 +956,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