From e103e549d73b6b5f143f95b3648b7103f3c16937 Mon Sep 17 00:00:00 2001 From: Georgi Valkov Date: Thu, 6 Dec 2012 17:01:54 +0200 Subject: [PATCH] fix bare except statement --- pip/commands/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pip/commands/help.py b/pip/commands/help.py index b6fc14316..282ba58a3 100644 --- a/pip/commands/help.py +++ b/pip/commands/help.py @@ -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: