mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Capture exception message (PyChecker)
This commit is contained in:
parent
a49e0a0893
commit
994b51e906
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ def _toaiff(filename, temps):
|
||||||
ftype = sndhdr.whathdr(fname)
|
ftype = sndhdr.whathdr(fname)
|
||||||
if ftype:
|
if ftype:
|
||||||
ftype = ftype[0] # All we're interested in
|
ftype = ftype[0] # All we're interested in
|
||||||
except IOError:
|
except IOError, msg:
|
||||||
if type(msg) == type(()) and len(msg) == 2 and \
|
if type(msg) == type(()) and len(msg) == 2 and \
|
||||||
type(msg[0]) == type(0) and type(msg[1]) == type(''):
|
type(msg[0]) == type(0) and type(msg[1]) == type(''):
|
||||||
msg = msg[1]
|
msg = msg[1]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue