Remove usage of exception indexing.

This commit is contained in:
Georg Brandl 2010-10-24 14:20:22 +00:00
parent 543af75961
commit b75b639a8b
1 changed files with 1 additions and 1 deletions

View File

@ -912,7 +912,7 @@ else:
sys.stdout.write("\nSSLError is %s\n" % x.args[1])
except socket.error as x:
if support.verbose:
sys.stdout.write("\nsocket.error is %s\n" % x[1])
sys.stdout.write("\nsocket.error is %s\n" % x.args[1])
except IOError as x:
if x.errno != errno.ENOENT:
raise