Commit a24da2f1 authored by Just van Rossum's avatar Just van Rossum

repair damage: now works again as a CFM app.

parent cf26878a
......@@ -46,7 +46,7 @@ class PythonIDE(Wapplication.Application):
# With -D option (OSX command line only) keep stderr, for debugging the IDE
# itself.
debug_stderr = None
if sys.argv[1] == '-D':
if len(sys.argv) >= 2 and sys.argv[1] == '-D':
debug_stderr = sys.stderr
del sys.argv[1]
PyConsole.installoutput()
......
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