Commit 994b51e9 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Capture exception message (PyChecker)

parent a49e0a08
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment