summaryrefslogtreecommitdiffstats
path: root/Lib/toaiff.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-08-13 14:40:47 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-08-13 14:40:47 (GMT)
commit994b51e90619c4f74532310ed0e24a51c0a863d3 (patch)
treec20bdc54fb066afa0906cd9fa26ae6f30ed47873 /Lib/toaiff.py
parenta49e0a0893ed83f0571b19fc29a3263edf53e7f6 (diff)
downloadcpython-994b51e90619c4f74532310ed0e24a51c0a863d3.zip
cpython-994b51e90619c4f74532310ed0e24a51c0a863d3.tar.gz
cpython-994b51e90619c4f74532310ed0e24a51c0a863d3.tar.bz2
Capture exception message (PyChecker)
Diffstat (limited to 'Lib/toaiff.py')
-rw-r--r--Lib/toaiff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/toaiff.py b/Lib/toaiff.py
index a2b6d6e..f0c5c86 100644
--- a/Lib/toaiff.py
+++ b/Lib/toaiff.py
@@ -86,7 +86,7 @@ def _toaiff(filename, temps):
ftype = sndhdr.whathdr(fname)
if ftype:
ftype = ftype[0] # All we're interested in
- except IOError:
+ except IOError, msg:
if type(msg) == type(()) and len(msg) == 2 and \
type(msg[0]) == type(0) and type(msg[1]) == type(''):
msg = msg[1]