Fix flake8
This commit is contained in:
parent
e06bdcf2a3
commit
b93d271f31
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
.. moduleauthor:: Dmitry Zykov https://github.com/DmitryZykov
|
.. moduleauthor:: Dmitry Zykov https://github.com/DmitryZykov
|
||||||
"""
|
"""
|
||||||
from os import path, walk
|
from os import path
|
||||||
|
|
||||||
import paramiko
|
import paramiko
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ class SFTPDestinationPlugin(DestinationPlugin):
|
||||||
for part in allparts:
|
for part in allparts:
|
||||||
try:
|
try:
|
||||||
if part != "/" and part != "":
|
if part != "/" and part != "":
|
||||||
remote_path = path.join(remote_path, part);
|
remote_path = path.join(remote_path, part)
|
||||||
sftp.stat(remote_path)
|
sftp.stat(remote_path)
|
||||||
except IOError:
|
except IOError:
|
||||||
current_app.logger.debug("{0} doesn't exist, trying to create it".format(remote_path))
|
current_app.logger.debug("{0} doesn't exist, trying to create it".format(remote_path))
|
||||||
|
|
Loading…
Reference in New Issue