xiekeyang / oci-discovery

Contain the OCI Ref-engine Discovery specification and related specifications as an extention to the image specification.
Other
2 stars 1 forks source link

oci_discovery/ref_engine_discovery: Catch SSL Errors #19

Closed wking closed 7 years ago

wking commented 7 years ago

Like:

ssl.CertificateError: hostname '192.168.0.1' doesn't match 'example.com'

There are two distinct classes of errors in Python's ssl library, so catch both.

xiekeyang commented 7 years ago

LGTM