mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Remove usage of exception indexing.
This commit is contained in:
parent
543af75961
commit
b75b639a8b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue