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] [info]
name: Plugin Installer name: Plugin Installer
short_name: plugin_installer short_name: plugin_installer
version: 0.11.3 version: 0.11.4
description: Install and upgrade plugins from ftp description: Install and upgrade plugins from ftp
authors: Denis Fomin <fominde@gmail.com> authors: Denis Fomin <fominde@gmail.com>
Yann Leboulanger <asterix@lagaule.org> Yann Leboulanger <asterix@lagaule.org>
......
...@@ -611,12 +611,9 @@ class Ftp(threading.Thread): ...@@ -611,12 +611,9 @@ class Ftp(threading.Thread):
# creating dirs # creating dirs
for dir_ in dirs: for dir_ in dirs:
try: if os.path.exists(os.path.join(local_dir, dir_)):
os.mkdir(os.path.join(local_dir, dir_)) continue
except OSError, e: os.mkdir(os.path.join(local_dir, dir_))
if str(e).startswith('[Errno 17]'):
continue
raise
# downloading files # downloading files
for filename in 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