diff options
author | Georg Brandl <georg@python.org> | 2008-01-06 21:13:42 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-01-06 21:13:42 +0000 |
commit | d11b68ab0834be4be76fca479cd4426eb45dfaec (patch) | |
tree | bc05f1c9ac1e0460d2f30531fcb31ab09084979e /Lib/plat-mac/EasyDialogs.py | |
parent | 7357c23ee72d687433452555018e9931159a2dfa (diff) | |
download | cpython-git-d11b68ab0834be4be76fca479cd4426eb45dfaec.tar.gz |
Fix more exception slicing.
Diffstat (limited to 'Lib/plat-mac/EasyDialogs.py')
-rw-r--r-- | Lib/plat-mac/EasyDialogs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/plat-mac/EasyDialogs.py b/Lib/plat-mac/EasyDialogs.py index 2f0e3d3f39..68beafa194 100644 --- a/Lib/plat-mac/EasyDialogs.py +++ b/Lib/plat-mac/EasyDialogs.py @@ -651,7 +651,7 @@ def AskFileForOpen( rr = Nav.NavChooseFile(args) good = 1 except Nav.error as arg: - if arg[0] != -128: # userCancelledErr + if arg.args[0] != -128: # userCancelledErr raise Nav.error(arg) return None if not rr.validRecord or not rr.selection: @@ -704,7 +704,7 @@ def AskFileForSave( rr = Nav.NavPutFile(args) good = 1 except Nav.error as arg: - if arg[0] != -128: # userCancelledErr + if arg.args[0] != -128: # userCancelledErr raise Nav.error(arg) return None if not rr.validRecord or not rr.selection: @@ -764,7 +764,7 @@ def AskFolder( rr = Nav.NavChooseFolder(args) good = 1 except Nav.error as arg: - if arg[0] != -128: # userCancelledErr + if arg.args[0] != -128: # userCancelledErr raise Nav.error(arg) return None if not rr.validRecord or not rr.selection: |