Commit a65137dc authored by Steve Dower's avatar Steve Dower

Fixes empty tuple case.

parent 35023693
......@@ -834,7 +834,7 @@ if _exists("fork") and not _exists("spawnv") and _exists("execv"):
# Internal helper; func is the exec*() function to use
if not isinstance(args, (tuple, list)):
raise TypeError('argv must be a tuple or a list')
if not args[0]:
if not args or not args[0]:
raise ValueError('argv first element cannot be empty')
pid = fork()
if not pid:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment