Mercurial > hg-stable
changeset 33210:b93df142485e
show: also catch AmbiguousCommand
cmdutil.findcmd() can raise this as well. While we'll almost certainly
never encounter this in the wild, guard against it regardless.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 03 Jul 2017 21:18:32 -0700 |
parents | 9718725dc02a |
children | f48422ab81aa |
files | hgext/show.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/show.py Mon Jul 03 21:12:04 2017 -0700 +++ b/hgext/show.py Mon Jul 03 21:18:32 2017 -0700 @@ -233,7 +233,7 @@ try: cmdutil.findcmd('rebase', commands.table) haverebase = True - except error.UnknownCommand: + except (error.AmbiguousCommand, error.UnknownCommand): haverebase = False # TODO use templating.