# HG changeset patch # User Martin von Zweigbergk # Date 2018-09-27 21:26:02 # Node ID 8cef57031bbe7c1aadcba6c8be7c2cdce44602b7 # Parent 2327abace563dd8560efeb87358479d390106b78 context: stop catching TypeError when converting hex nodeid to binary It has been a programming error to pass a 40-character string that is not a hex nodeid since 8b86acc7aa64 (context: drop support for looking up context by ambiguous changeid (API), 2018-04-28), so we can just let it raise a TypeError. Differential Revision: https://phab.mercurial-scm.org/D4807 diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -435,7 +435,7 @@ class changectx(basectx): return except error.FilteredLookupError: raise - except (TypeError, LookupError): + except LookupError: pass else: raise error.ProgrammingError(