Skip to content

Commit

Permalink
Set sys.last_{type,value} to characteristics of last unhandled except…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
gvanrossum committed Mar 4, 1992
1 parent febd551 commit c4adc83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Python/pythonmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c4adc83

Please sign in to comment.