nodetree: simplify a conditionnal in shortesthexnodeidprefix...
nodetree: simplify a conditionnal in shortesthexnodeidprefix
instead of try to catch some attribute error, we could just nicely look if the
attribute will be available. This make the code simpler to follow and less error
prone since we no longer rely on a wider attribute catching.
Differential Revision:
https://phab.mercurial-scm.org/D7651