Kaydet (Commit) c6fe983b authored tarafından Guido van Rossum's avatar Guido van Rossum

When sitecustomize.py fails, don't make all of site.py fail,

unless PYTHONVERBOSE is set.
üst e2b70bcf
......@@ -385,6 +385,13 @@ def execsitecustomize():
import sitecustomize
except ImportError:
pass
except Exception, err:
if os.environ.get("PYTHONVERBOSE"):
raise
sys.stderr.write(
"Error in sitecustomize; set PYTHONVERBOSE for traceback:\n"
"%s: %s\n" %
(err.__class__.__name__, err))
def main():
......
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