1
0
mirror of https://github.com/l1ving/youtube-dl synced 2020-11-18 19:53:54 -08:00

FileDownloader: aria2c: Delete cookies file only if it exists.

This commit is contained in:
Rogério Brito 2013-02-25 23:07:22 -03:00
parent 91d59c7be7
commit c834cbcca4

View File

@ -657,7 +657,8 @@ class FileDownloader(object):
retval = subprocess.call(basic_args)
# The cookie jar is not necessary anymore
os.unlink(tmp_jar_name)
if tmp_jar_name:
os.unlink(tmp_jar_name)
if retval == 0: