commit | d11b68ab0834be4be76fca479cd4426eb45dfaec | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sun Jan 06 21:13:42 2008 +0000 |
committer | Georg Brandl <georg@python.org> | Sun Jan 06 21:13:42 2008 +0000 |
tree | bc05f1c9ac1e0460d2f30531fcb31ab09084979e | |
parent | 7357c23ee72d687433452555018e9931159a2dfa [diff] [blame] |
Fix more exception slicing.
diff --git a/Lib/plat-mac/terminalcommand.py b/Lib/plat-mac/terminalcommand.py index a2f008c..da1c28a 100644 --- a/Lib/plat-mac/terminalcommand.py +++ b/Lib/plat-mac/terminalcommand.py
@@ -36,7 +36,7 @@ try: theEvent.AESend(SEND_MODE, kAENormalPriority, kAEDefaultTimeout) except AE.Error as why: - if why[0] != -600: # Terminal.app not yet running + if why.args[0] != -600: # Terminal.app not yet running raise os.system(START_TERMINAL) time.sleep(1)