Add context fix to tests, Add regex, Flake8

This commit is contained in:
Mathias Petermann
2020-11-10 15:32:04 +01:00
parent 4a181aff6e
commit 99ca0ac78d
5 changed files with 26 additions and 8 deletions

View File

@ -123,9 +123,7 @@ class AcmeHandler(object):
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[
len(pem_certificate): # noqa
].lstrip()
pem_certificate_chain = orderr.fullchain_pem[len(pem_certificate):].lstrip()
current_app.logger.debug(
"{0} {1}".format(type(pem_certificate), type(pem_certificate_chain))