mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +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;
|
||||
int err;
|
||||
err_get(&type, &value);
|
||||
if (value == NULL) {
|
||||
value = None;
|
||||
INCREF(value);
|
||||
}
|
||||
traceback = tb_fetch();
|
||||
arg = newtupleobject(3);
|
||||
if (arg == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue