This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author clikkeb
Recipients asvetlov, clikkeb, r.david.murray, roger.serwy, terry.reedy
Date 2012-04-16.08:30:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334565012.98.0.285011418238.issue14576@psf.upfronthosting.co.za>
In-reply-to
Content
I think that lines 207-210 of GetUserCfgDir should be modified like this:

try:
    sys.stderr.write(warn)
except (IOError, AttributeError):    # <---- 
    pass        #^^^^^^^^^^^^^^

because when you start IDLE via pythonw.exe (that sets sys.stderr to "None"),
the function call sys.stderr.write(warn) raises the following exception:

    AttributeError: 'NoneType' object has no attribute 'write'

and IDLE stops running without displaying any exception error, because that
exception is unhandled.

There is a funcion call to sys.stderr.write also at line 222, just before a
"raise SystemExit" statement, which makes ininfluent the missing 
AttributeError exception handling.
History
Date User Action Args
2012-04-16 08:30:13clikkebsetrecipients: + clikkeb, terry.reedy, roger.serwy, r.david.murray, asvetlov
2012-04-16 08:30:12clikkebsetmessageid: <1334565012.98.0.285011418238.issue14576@psf.upfronthosting.co.za>
2012-04-16 08:30:12clikkeblinkissue14576 messages
2012-04-16 08:30:12clikkebcreate