mirror of
https://github.com/python/cpython.git
synced 2025-07-13 06:15:17 +00:00
Set sys.last_{type,value} to characteristics of last unhandled exception.
This commit is contained in:
parent
febd551bab
commit
c4adc83378
1 changed files with 2 additions and 0 deletions
|
@ -300,6 +300,8 @@ print_error()
|
|||
goaway(1);
|
||||
}
|
||||
}
|
||||
sysset("last_type", exception);
|
||||
sysset("last_value", v);
|
||||
if (printobject(exception, stderr, PRINT_RAW) != 0)
|
||||
err_clear();
|
||||
if (v != NULL && v != None) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue