Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 815:6508c93f9472 legacy-trunk
Test for NULL coming out of err_get() in call_exc_trace()
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 09 Apr 1992 14:58:08 +0000 |
| parents | f08d34499269 |
| children | 72aceed365d4 |
line wrap: on
line diff
--- a/Python/ceval.c Wed Apr 08 11:32:32 1992 +0000 +++ b/Python/ceval.c Thu Apr 09 14:58:08 1992 +0000 @@ -1189,6 +1189,10 @@ object *type, *value, *traceback, *arg; int err; err_get(&type, &value); + if (value == NULL) { + value = None; + INCREF(value); + } traceback = tb_fetch(); arg = newtupleobject(3); if (arg == NULL)
