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 vstinner
Recipients vstinner
Date 2016-01-13.14:46:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452696404.05.0.367833198211.issue26099@psf.upfronthosting.co.za>
In-reply-to
Content
If the code of sitecustomize raises an ImportError because the requested module doesn't exist, sitecustomize exception is silently ignored because site.py uses "try: import sitecustomize except ImportError: pass".

It's possible to log a warning since ImportError now has a name attribute since Python 3.3.

There is a similar issue on usercustomize.

Attached patch fixes the issue.
History
Date User Action Args
2016-01-13 14:46:44vstinnersetrecipients: + vstinner
2016-01-13 14:46:44vstinnersetmessageid: <1452696404.05.0.367833198211.issue26099@psf.upfronthosting.co.za>
2016-01-13 14:46:44vstinnerlinkissue26099 messages
2016-01-13 14:46:43vstinnercreate