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 alanr
Recipients alanr, jaraco, ned.deily, ronaldoussoren, vinay.sajip
Date 2020-01-08.13:51:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578491495.22.0.138187530171.issue38780@roundup.psfhosted.org>
In-reply-to
Content
There are a variety of different reasons this can fail, not just on MacOS. You could give it a bad IP address of a server, etc. [That was my particular case].

The constructor should create an attribute 'socket' and initialize it to None early on. Then, the close function in logging/handlers.py should check for None. Or alternatively, it shouldn't register the object with atexit until it's been constructed "well-enough".
History
Date User Action Args
2020-01-08 13:51:35alanrsetrecipients: + alanr, vinay.sajip, ronaldoussoren, jaraco, ned.deily
2020-01-08 13:51:35alanrsetmessageid: <1578491495.22.0.138187530171.issue38780@roundup.psfhosted.org>
2020-01-08 13:51:35alanrlinkissue38780 messages
2020-01-08 13:51:35alanrcreate