From d11b68ab0834be4be76fca479cd4426eb45dfaec Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 6 Jan 2008 21:13:42 +0000 Subject: Fix more exception slicing. --- Lib/plat-mac/EasyDialogs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Lib/plat-mac/EasyDialogs.py') 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: -- cgit v1.2.1