Skip to content

Commit 7d51e2c

Browse files
author
DrGeoff
committed
Fix index bug in configutils.py. Parallel testing now works.
1 parent f2b02bf commit 7d51e2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiletools/configutils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ def extract_value_from_argv(key, argv=None, default=None, verbose=0):
3434
keywithhyphens = "".join([hh, key])
3535
if arg.startswith(keywithhyphens):
3636
index = argv.index(keywithhyphens)
37-
value = argv[index + 1]
37+
if index + 1 < len(argv):
38+
value = argv[index + 1]
3839
except ValueError:
3940
pass
4041

0 commit comments

Comments
 (0)