str(err) provides the host as wanted, but doesn't provide the error type (SSLError for instance)
I added that so that we know the error type