fix bare except statement

This commit is contained in:
Georgi Valkov 2012-12-06 17:01:54 +02:00
parent 7f4503b9e2
commit e103e549d7
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class HelpCommand(Command):
try:
# 'pip help' with no args is handled by pip.__init__.parseopt()
cmd_name = args[0] # the command we need help for
except:
except IndexError:
return SUCCESS
if cmd_name not in commands: