fixing UnboundLocalError bug

This commit is contained in:
Hossein Shafagh 2020-06-11 16:47:37 -07:00
parent 5ea3815c7e
commit 4985744bd8

View File

@ -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: