Enlightenment CVS committal
Author : barbieri
Project : e17
Module : proto
Dir : e17/proto/python-efl/python-emotion/emotion
Modified Files:
emotion.c_emotion.pyx
Log Message:
Show exception tracebacks for exceptions ignored inside C callbacks.
===================================================================
RCS file:
/cvs/e/e17/proto/python-efl/python-emotion/emotion/emotion.c_emotion.pyx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- emotion.c_emotion.pyx 12 Jul 2007 19:11:53 -0000 1.2
+++ emotion.c_emotion.pyx 17 Jul 2007 23:07:20 -0000 1.3
@@ -7,7 +7,11 @@
event = <object>data
lst = obj._emotion_callbacks[event]
for func, args, kargs in lst:
- func(obj, *args, **kargs)
+ try:
+ func(obj, *args, **kargs)
+ except Exception, e:
+ import traceback
+ traceback.print_exc()
class EmotionModuleInitError(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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs