mercurial/debugcommands.py
changeset 49263 63fd0282ad40
parent 49249 b909dd35d9ab
child 49264 db19f6be0442
--- a/mercurial/debugcommands.py	Mon May 30 00:45:00 2022 +0200
+++ b/mercurial/debugcommands.py	Mon May 30 16:18:12 2022 +0200
@@ -2691,9 +2691,9 @@
             # local repository.
             n = bin(s)
             if len(n) != repo.nodeconstants.nodelen:
-                raise TypeError()
+                raise ValueError
             return n
-        except TypeError:
+        except ValueError:
             raise error.InputError(
                 b'changeset references must be full hexadecimal '
                 b'node identifiers'