From: Andrew M. Kuchling Date: Mon, 13 Aug 2001 14:40:47 +0000 (+0000) Subject: Capture exception message (PyChecker) X-Git-Tag: v2.2a3~601 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=994b51e90619c4f74532310ed0e24a51c0a863d3;p=python Capture exception message (PyChecker) --- diff --git a/Lib/toaiff.py b/Lib/toaiff.py index a2b6d6e9cb..f0c5c86a7f 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]