Fix flake8
This commit is contained in:
parent
e06bdcf2a3
commit
b93d271f31
|
@ -212,7 +212,7 @@ class AcmeHandler(object):
|
||||||
|
|
||||||
if current_app.config.get("IDENTRUST_CROSS_SIGNED_LE_ICA", False) \
|
if current_app.config.get("IDENTRUST_CROSS_SIGNED_LE_ICA", False) \
|
||||||
and datetime.datetime.now() < datetime.datetime.strptime(
|
and datetime.datetime.now() < datetime.datetime.strptime(
|
||||||
current_app.config.get("IDENTRUST_CROSS_SIGNED_LE_ICA_EXPIRATION_DATE", "17/03/21"), '%d/%m/%y'):
|
current_app.config.get("IDENTRUST_CROSS_SIGNED_LE_ICA_EXPIRATION_DATE", "17/03/21"), '%d/%m/%y'):
|
||||||
pem_certificate_chain = current_app.config.get("IDENTRUST_CROSS_SIGNED_LE_ICA")
|
pem_certificate_chain = current_app.config.get("IDENTRUST_CROSS_SIGNED_LE_ICA")
|
||||||
else:
|
else:
|
||||||
pem_certificate_chain = orderr.fullchain_pem[
|
pem_certificate_chain = orderr.fullchain_pem[
|
||||||
|
|
|
@ -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