Enlightenment CVS committal Author : barbieri Project : e17 Module : proto
Dir : e17/proto/python-efl/python-edje/edje Modified Files: edje.c_edje_object.pxi Log Message: Show exception tracebacks for exceptions ignored inside C callbacks. =================================================================== RCS file: /cvs/e/e17/proto/python-efl/python-edje/edje/edje.c_edje_object.pxi,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- edje.c_edje_object.pxi 12 Jul 2007 19:11:53 -0000 1.10 +++ edje.c_edje_object.pxi 17 Jul 2007 23:07:20 -0000 1.11 @@ -6,7 +6,11 @@ if self._text_change_cb is None: return func, args, kargs = self._text_change_cb - func(self, part, *args, **kargs) + try: + func(self, part, *args, **kargs) + except Exception, e: + import traceback + traceback.print_exc() cdef void message_handler_cb(void *data, evas.c_evas.Evas_Object *obj, @@ -16,7 +20,11 @@ if self._message_handler_cb is None: return func, args, kargs = self._message_handler_cb - func(self, Message_from_type(type, id, msg), *args, **kargs) + try: + func(self, Message_from_type(type, id, msg), *args, **kargs) + except Exception, e: + import traceback + traceback.print_exc() cdef void signal_cb(void *data, evas.c_evas.Evas_Object *obj, @@ -25,7 +33,11 @@ self = <Edje>evas.c_evas._Object_from_instance(<long>obj) lst = <object>data for func, args, kargs in lst: - func(self, emission, source, *args, **kargs) + try: + func(self, emission, source, *args, **kargs) + except Exception, e: + import traceback + traceback.print_exc() class EdjeLoadError(Exception): ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs