Enlightenment CVS committal

Author  : barbieri
Project : e17
Module  : proto

Dir     : e17/proto/python-efl/python-evas/evas


Modified Files:
        evas.c_evas_object_callbacks.pxi 


Log Message:
Show exception tracebacks for exceptions ignored inside C callbacks.

===================================================================
RCS file: 
/cvs/e/e17/proto/python-efl/python-evas/evas/evas.c_evas_object_callbacks.pxi,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- evas.c_evas_object_callbacks.pxi    3 May 2007 14:29:22 -0000       1.1
+++ evas.c_evas_object_callbacks.pxi    17 Jul 2007 23:07:20 -0000      1.2
@@ -4,7 +4,11 @@
     # iterate over copy since users may delete callback from callback
     lst = list(self._callbacks[<int>type])
     for func, args, kargs in lst:
-        func(self, event, *args, **kargs)
+        try:
+            func(self, event, *args, **kargs)
+        except Exception, e:
+            import traceback
+            traceback.print_exc()
     return 1
 
 
@@ -12,7 +16,11 @@
     # iterate over copy since users may delete callback from callback
     lst = list(self._callbacks[<int>type])
     for func, args, kargs in lst:
-        func(self, *args, **kargs)
+        try:
+            func(self, *args, **kargs)
+        except Exception, e:
+            import traceback
+            traceback.print_exc()
     return 1
 
 



-------------------------------------------------------------------------
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

Reply via email to