Merge pull request #3016 from hosseinsh/UnboundLocalError

fixing UnboundLocalError bug
This commit is contained in:
Hossein Shafagh 2020-06-11 16:57:48 -07:00 committed by GitHub
commit e024fceba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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 # OCSP is our main source of truth, in a lot of cases CRLs
# have been deprecated and are no longer updated # have been deprecated and are no longer updated
verify_result = None
try: try:
verify_result = ocsp_verify(cert, cert_path, issuer_chain_path) verify_result = ocsp_verify(cert, cert_path, issuer_chain_path)
except Exception as e: except Exception as e: