diff options
Diffstat (limited to 'Python/pythonmain.c')
-rw-r--r-- | Python/pythonmain.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pythonmain.c b/Python/pythonmain.c index f7ff36c..b00a270 100644 --- a/Python/pythonmain.c +++ b/Python/pythonmain.c @@ -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) { |