Fix flake8

This commit is contained in:
Mathias Petermann 2020-09-30 08:39:41 +02:00
parent e06bdcf2a3
commit b93d271f31
2 changed files with 3 additions and 3 deletions

View File

@ -212,7 +212,7 @@ class AcmeHandler(object):
if current_app.config.get("IDENTRUST_CROSS_SIGNED_LE_ICA", False) \
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")
else:
pem_certificate_chain = orderr.fullchain_pem[

View File

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