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

This commit is contained in:
Guido van Rossum 1992-04-09 14:58:08 +00:00
parent 801dcae64d
commit bd9ccca812
1 changed files with 4 additions and 0 deletions

View File

@ -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)