Commit bd9ccca8 authored by Guido van Rossum's avatar Guido van Rossum

Test for NULL coming out of err_get() in call_exc_trace()

parent 801dcae6
......@@ -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)
......
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