From 4985744bd8b2183877ca60de65a7f3a1c7ab6530 Mon Sep 17 00:00:00 2001 From: Hossein Shafagh Date: Thu, 11 Jun 2020 16:47:37 -0700 Subject: [PATCH] fixing UnboundLocalError bug --- lemur/certificates/verify.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lemur/certificates/verify.py b/lemur/certificates/verify.py index 989a2317..0fe379f8 100644 --- a/lemur/certificates/verify.py +++ b/lemur/certificates/verify.py @@ -153,6 +153,7 @@ def verify(cert_path, issuer_chain_path): # OCSP is our main source of truth, in a lot of cases CRLs # have been deprecated and are no longer updated + verify_result = None try: verify_result = ocsp_verify(cert, cert_path, issuer_chain_path) except Exception as e: