From 652d7f65dd86d0e1c68cf494cf5393741c9526ce Mon Sep 17 00:00:00 2001 From: Mike Culbertson Date: Thu, 27 Sep 2018 09:28:21 -0400 Subject: [PATCH] flake8 tweak --- lemur/certificates/verify.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lemur/certificates/verify.py b/lemur/certificates/verify.py index 073ab404..ad047639 100644 --- a/lemur/certificates/verify.py +++ b/lemur/certificates/verify.py @@ -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