mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Set sys.last_{type,value} to characteristics of last unhandled exception.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user