Gracefully handle importing certificates with missing data (#674)

* fixing index out of range issue

* catching exceptions is common values aren't set

* fixing lint errors

* fixing unrelated lint/import error
This commit is contained in:
Nevins
2017-01-24 16:48:53 -05:00
committed by kevgliss
parent b1723b4985
commit 162d5ccb62
2 changed files with 37 additions and 18 deletions

View File

@ -7,6 +7,7 @@
"""
import requests
import subprocess
from requests.exceptions import ConnectionError
from cryptography import x509
from cryptography.hazmat.backends import default_backend