Python not catching error from SSL certificate mismatch -
i trying execute block of code throws below error because of client , server certificate mismatch. not able catch python using form of exceptions.
e0911 11:26:53.861000000 8124 src/core/tsi/ssl_transport_security.c:921] handshake failed fatal error ssl_error_ssl: error:0400006b:rsa routines:openssl_internal:block_type_is_not_01.
any idea how can catch exception in python?
try: h = gnmixt(neip,grpcport,neuser,nepass,".*") h.subscribe_maxsessions(orig_stdout, timeout=10) except exception e: print str(e) except sslerror e: print str(e)
Comments
Post a Comment