Commit 6386ccb2 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix a logic error.

TBR

Review URL: http://codereview.chromium.org/2077003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@47373 0039d316-1c4b-4281-b951-d872f2087c98
parent 4c22d721
...@@ -636,7 +636,7 @@ def CMDstatus(argv): ...@@ -636,7 +636,7 @@ def CMDstatus(argv):
def CMDhelp(argv=None): def CMDhelp(argv=None):
"""Prints this help or help for the given command.""" """Prints this help or help for the given command."""
if len(argv) > 2: if argv and len(argv) > 2:
if argv[2] == 'try': if argv[2] == 'try':
TryChange(None, ['--help'], swallow_exception=False) TryChange(None, ['--help'], swallow_exception=False)
return 0 return 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment