index function throws ValueError not KeyError

This commit is contained in:
Dmitry Trofimov
2013-10-09 01:21:12 +02:00
parent ececc6cab6
commit ba71aabafb
+1 -1
View File
@@ -29,7 +29,7 @@ def patch_args(args):
if is_python(args[0]):
try:
indC = args.index('-c')
except KeyError:
except ValueError:
indC = -1
if indC != -1: