[YoutubeDL] Ignore failure to create existing directory (#27811)
This commit is contained in:
parent
6ec432f9e4
commit
8ab5adca22
|
@ -1783,6 +1783,8 @@ class HaruhiDL(object):
|
|||
os.makedirs(dn)
|
||||
return True
|
||||
except (OSError, IOError) as err:
|
||||
if isinstance(err, OSError) and err.errno == errno.EEXIST:
|
||||
return True
|
||||
self.report_error('unable to create directory ' + error_to_compat_str(err))
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in a new issue