fixed typo, now correctly check isdir

fixes #3089
reviewable/pr18780/r1
Brian Coca 9 years ago
parent ab4c542b33
commit c50ca43d8d

@ -309,7 +309,7 @@ def main():
except OSError, ex:
# Possibly something else created the dir since the os.path.exists
# check above. As long as it's a dir, we don't need to error out.
if not (ex.errno == errno.EEXIST and os.isdir(curpath)):
if not (ex.errno == errno.EEXIST and os.path.isdir(curpath)):
raise
tmp_file_args = file_args.copy()
tmp_file_args['path']=curpath

Loading…
Cancel
Save