From a96d3d0840357e6015119c427e7052fd73d9be3a Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 31 Mar 2014 01:10:10 +0300 Subject: objexcept: No more magic messages in exceptions, only exception arguments. One of the reason for separate "message" (besides still unfulfilled desire to optimize memory usage) was apparent special handling of exception with messages by CPython. Well, the message is still just an exception argument, it just printed specially. Implement that with PRINT_EXC printing format. --- py/obj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/obj.c') diff --git a/py/obj.c b/py/obj.c index f80d1a9772..95052d16d2 100644 --- a/py/obj.c +++ b/py/obj.c @@ -62,7 +62,7 @@ void mp_obj_print_exception(mp_obj_t exc) { } } } - mp_obj_print(exc, PRINT_REPR); + mp_obj_print(exc, PRINT_EXC); printf("\n"); } -- cgit v1.2.3