Commit 67050d2d authored by Just van Rossum's avatar Just van Rossum

Workaround for odd problem on my machine: without this I get a traceback

if I hit enter instead of return upon file selection.
parent ab57c7dc
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment