Commit 0606e0e2 authored by Guido van Rossum's avatar Guido van Rossum

Set sys.last_{type,value} to characteristics of last unhandled exception.

parent 353a6e1a
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment