flake8 tweak

This commit is contained in:
Mike Culbertson 2018-09-27 09:28:21 -04:00
parent 2815ddf6c8
commit 652d7f65dd
1 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ from lemur.common.utils import parse_certificate
crl_cache = {}
def ocsp_verify(cert, cert_path, issuer_chain_path):
"""
Attempts to verify a certificate via OCSP. OCSP is a more modern version
@ -67,8 +68,8 @@ def crl_verify(cert, cert_path):
"""
try:
distribution_points = cert.extensions.get_extension_for_oid(
x509.OID_CRL_DISTRIBUTION_POINTS
).value
x509.OID_CRL_DISTRIBUTION_POINTS
).value
except x509.ExtensionNotFound:
current_app.logger.debug("No CRLDP extension in certificate {}".format(cert.serial_number))
return None