hgext/largefiles/lfcommands.py
changeset 49248 63fd0282ad40
parent 48875 6000f5b25c9b
child 49306 2e726c934fcd
--- 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: