mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
Don't print "Unhandled exception: " when one occurs -- just print its name.
This commit is contained in:
parent
3b1a57a4a0
commit
cb4eeddeea
1 changed files with 2 additions and 0 deletions
|
@ -300,7 +300,9 @@ print_error()
|
||||||
goaway(1);
|
goaway(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
fprintf(stderr, "Unhandled exception: ");
|
fprintf(stderr, "Unhandled exception: ");
|
||||||
|
*/
|
||||||
if (printobject(exception, stderr, PRINT_RAW) != 0)
|
if (printobject(exception, stderr, PRINT_RAW) != 0)
|
||||||
err_clear();
|
err_clear();
|
||||||
if (v != NULL && v != None) {
|
if (v != NULL && v != None) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue