mirror of https://github.com/python/cpython
Remove usage of exception indexing.
This commit is contained in:
parent
543af75961
commit
b75b639a8b
|
@ -912,7 +912,7 @@ else:
|
||||||
sys.stdout.write("\nSSLError is %s\n" % x.args[1])
|
sys.stdout.write("\nSSLError is %s\n" % x.args[1])
|
||||||
except socket.error as x:
|
except socket.error as x:
|
||||||
if support.verbose:
|
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:
|
except IOError as x:
|
||||||
if x.errno != errno.ENOENT:
|
if x.errno != errno.ENOENT:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue