Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b75b639

Browse files
committed
Remove usage of exception indexing.
1 parent 543af75 commit b75b639

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_ssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ def bad_cert_test(certfile):
912912
sys.stdout.write("\nSSLError is %s\n" % x.args[1])
913913
except socket.error as x:
914914
if support.verbose:
915-
sys.stdout.write("\nsocket.error is %s\n" % x[1])
915+
sys.stdout.write("\nsocket.error is %s\n" % x.args[1])
916916
except IOError as x:
917917
if x.errno != errno.ENOENT:
918918
raise

0 commit comments

Comments
 (0)