summaryrefslogtreecommitdiffstats
path: root/Lib/toaiff.py
diff options
context:
space:
mode:
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 3c8a02b..438d225 100644
--- a/Lib/toaiff.py
+++ b/Lib/toaiff.py
@@ -87,7 +87,7 @@ def _toaiff(filename, temps):
ftype = sndhdr.whathdr(fname)
if ftype:
ftype = ftype[0] # All we're interested in
- except IOError, msg:
+ except IOError as msg:
if type(msg) == type(()) and len(msg) == 2 and \
type(msg[0]) == type(0) and type(msg[1]) == type(''):
msg = msg[1]