Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: gcl.py

Issue 2077003: Fix a logic error (Closed)
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcl.py
diff --git a/gcl.py b/gcl.py
index 7012264974cb916f3fa9e729e656c9e589485868..8d72c830a7a548a91bd877c66e8325ccf5cfb9d0 100755
--- a/gcl.py
+++ b/gcl.py
@@ -636,7 +636,7 @@ def CMDstatus(argv):
def CMDhelp(argv=None):
"""Prints this help or help for the given command."""
- if len(argv) > 2:
+ if argv and len(argv) > 2:
if argv[2] == 'try':
TryChange(None, ['--help'], swallow_exception=False)
return 0
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698