Skip to content
Snippets Groups Projects
Commit 03e6e9d1 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't try to create an existing folder

parent 1b11519a
No related branches found
No related tags found
No related merge requests found
[info]
name: Plugin Installer
short_name: plugin_installer
version: 0.11.3
version: 0.11.4
description: Install and upgrade plugins from ftp
authors: Denis Fomin <fominde@gmail.com>
Yann Leboulanger <asterix@lagaule.org>
......
......@@ -611,12 +611,9 @@ class Ftp(threading.Thread):
# creating dirs
for dir_ in dirs:
try:
os.mkdir(os.path.join(local_dir, dir_))
except OSError, e:
if str(e).startswith('[Errno 17]'):
continue
raise
if os.path.exists(os.path.join(local_dir, dir_)):
continue
os.mkdir(os.path.join(local_dir, dir_))
# downloading files
for filename in files:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment