diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index ea1a785..0b2f924 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1189,6 +1189,10 @@ call_exc_trace(p_trace, p_newtrace, f) 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) |