Skip to content

Commit

Permalink
Add the missing f on an f-string error message in multiprocessing. (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
gpshead authored and picnixz committed Dec 2, 2024
1 parent 7321eff commit d92921c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/multiprocessing/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d92921c

Please sign in to comment.