diff -r 3e5f1fb2aec7 -r 63fd0282ad40 hgext/largefiles/lfcommands.py --- a/hgext/largefiles/lfcommands.py Mon May 30 00:45:00 2022 +0200 +++ b/hgext/largefiles/lfcommands.py Mon May 30 16:18:12 2022 +0200 @@ -8,6 +8,7 @@ '''High-level command function for lfconvert, plus the cmdtable.''' +import binascii import errno import os import shutil @@ -384,7 +385,7 @@ continue try: newid = bin(id) - except TypeError: + except binascii.Error: ui.warn(_(b'skipping incorrectly formatted id %s\n') % id) continue try: