mercurial/obsolete.py
changeset 49248 63fd0282ad40
parent 49176 3cd3aaba5b03
child 49284 d44e3c45f0e4
--- a/mercurial/obsolete.py	Mon May 30 00:45:00 2022 +0200
+++ b/mercurial/obsolete.py	Mon May 30 16:18:12 2022 +0200
@@ -68,6 +68,7 @@
 
 """
 
+import binascii
 import errno
 import struct
 
@@ -244,7 +245,7 @@
                     if len(p) != 20:
                         parents = None
                         break
-            except TypeError:
+            except binascii.Error:
                 # if content cannot be translated to nodeid drop the data.
                 parents = None