diff options
author | Christian Heimes <christian@cheimes.de> | 2007-11-15 02:26:46 +0000 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-11-15 02:26:46 +0000 |
commit | b1d0a869b0c6a87549967f1aa4bec3654a68bfbb (patch) | |
tree | cd268db5cb678848b402617f694b92cc583d8843 /Modules/threadmodule.c | |
parent | e7084798d74f202cf3d2ee6646d53124b0b3fac3 (diff) | |
download | cpython-b1d0a869b0c6a87549967f1aa4bec3654a68bfbb.tar.gz |
Added some additional checks for sys.std?? is None, see #1440
Diffstat (limited to 'Modules/threadmodule.c')
-rw-r--r-- | Modules/threadmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 62ea660860..876d5e2af3 100644 --- a/Modules/threadmodule.c +++ b/Modules/threadmodule.c @@ -429,7 +429,7 @@ t_bootstrap(void *boot_raw) PySys_WriteStderr( "Unhandled exception in thread started by "); file = PySys_GetObject("stderr"); - if (file) + if (file != NULL && file != Py_None) PyFile_WriteObject(boot->func, file, 0); else PyObject_Print(boot->func, stderr, 0); |