summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/macfsn.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Lib/macfsn.py')
-rw-r--r--Mac/Lib/macfsn.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mac/Lib/macfsn.py b/Mac/Lib/macfsn.py
index c496903..e7eeacd 100644
--- a/Mac/Lib/macfsn.py
+++ b/Mac/Lib/macfsn.py
@@ -46,7 +46,11 @@ def _PromptGetFile(prompt, *typelist):
good = 0
fss = macfs.FSSpec(':cancelled')
else:
- fss = rr.selection[0]
+ if rr.selection:
+ fss = rr.selection[0]
+ else:
+ fss = None
+ good = 0
## if typehandle:
## typehandle.DisposeHandle()
return fss, good