mirror of
https://github.com/python/cpython.git
synced 2025-09-03 15:31:08 +00:00
Test for NULL coming out of err_get() in call_exc_trace()
This commit is contained in:
parent
801dcae64d
commit
bd9ccca812
1 changed files with 4 additions and 0 deletions
|
@ -1189,6 +1189,10 @@ call_exc_trace(p_trace, p_newtrace, f)
|
||||||
object *type, *value, *traceback, *arg;
|
object *type, *value, *traceback, *arg;
|
||||||
int err;
|
int err;
|
||||||
err_get(&type, &value);
|
err_get(&type, &value);
|
||||||
|
if (value == NULL) {
|
||||||
|
value = None;
|
||||||
|
INCREF(value);
|
||||||
|
}
|
||||||
traceback = tb_fetch();
|
traceback = tb_fetch();
|
||||||
arg = newtupleobject(3);
|
arg = newtupleobject(3);
|
||||||
if (arg == NULL)
|
if (arg == NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue