summaryrefslogtreecommitdiffstats
path: root/Demo/scripts/toaiff.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-06 21:13:42 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-06 21:13:42 (GMT)
commitd11b68ab0834be4be76fca479cd4426eb45dfaec (patch)
treebc05f1c9ac1e0460d2f30531fcb31ab09084979e /Demo/scripts/toaiff.py
parent7357c23ee72d687433452555018e9931159a2dfa (diff)
downloadcpython-d11b68ab0834be4be76fca479cd4426eb45dfaec.zip
cpython-d11b68ab0834be4be76fca479cd4426eb45dfaec.tar.gz
cpython-d11b68ab0834be4be76fca479cd4426eb45dfaec.tar.bz2
Fix more exception slicing.
Diffstat (limited to 'Demo/scripts/toaiff.py')
-rw-r--r--Demo/scripts/toaiff.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/scripts/toaiff.py b/Demo/scripts/toaiff.py
index 5794859..0e9be23 100644
--- a/Demo/scripts/toaiff.py
+++ b/Demo/scripts/toaiff.py
@@ -89,8 +89,8 @@ def _toaiff(filename, temps):
ftype = ftype[0] # All we're interested in
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]
+ type(msg.args[0]) == type(0) and type(msg.args[1]) == type(''):
+ msg = msg.args[1]
if type(msg) != type(''):
msg = repr(msg)
raise error(filename + ': ' + msg)