1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:57:40 +00:00

Raise correct args in exception

This commit is contained in:
Philipp Hagemeister 2011-09-27 21:44:02 +02:00
parent 81eb98e4bd
commit 50d7a239ae

View file

@ -10,7 +10,7 @@ except ImportError: # Python < 2.7
p = subprocess.Popen(*args, stdout=subprocess.PIPE, **kwargs)
out,err = p.communicate()
if p.returncode != 0:
raise subprocess.CalledProcessError(p.returncode, p.args)
raise subprocess.CalledProcessError(p.returncode, args)
return out
youtubeDlDir = os.path.join(os.path.dirname(__file__), '..', 'youtube-dl')