Fix more exception slicing.
diff --git a/Lib/plat-mac/EasyDialogs.py b/Lib/plat-mac/EasyDialogs.py
index 2f0e3d3..68beafa 100644
--- a/Lib/plat-mac/EasyDialogs.py
+++ b/Lib/plat-mac/EasyDialogs.py
@@ -651,7 +651,7 @@
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 @@
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 @@
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: