# HG changeset patch # User Matt Harbison # Date 2022-10-20 16:05:17 # Node ID 192949b6815923cc3438999dc27f4bca5ddaafb9 # Parent c7c437f35687d00a24932f10d6ac5b4979b63e7c lfs: fix interpolation of int and %s in an exception case Seen in the wild in a server log when MS antivirus was quarantining a file on the client side. diff --git a/hgext/lfs/blobstore.py b/hgext/lfs/blobstore.py --- a/hgext/lfs/blobstore.py +++ b/hgext/lfs/blobstore.py @@ -170,7 +170,7 @@ class local: # the localstore, because it's not going to match the expected. if content_length is not None and int(content_length) != size: msg = ( - b"Response length (%s) does not match Content-Length " + b"Response length (%d) does not match Content-Length " b"header (%d): likely server-side crash" ) raise LfsRemoteError(_(msg) % (size, int(content_length)))