]> granicus.if.org Git - python/commitdiff
Capture exception message (PyChecker)
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 13 Aug 2001 14:40:47 +0000 (14:40 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 13 Aug 2001 14:40:47 +0000 (14:40 +0000)
Lib/toaiff.py

index a2b6d6e9cbe644ece9bca98ac9899b0f492fc610..f0c5c86a7f6740807f1b7365dd61193d7c07c8d5 100644 (file)
@@ -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]