Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv10052/src

Modified Files:
        main.py 
Log Message:
catch exception caused by eventhandlers

Index: main.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/main.py,v
retrieving revision 1.82
retrieving revision 1.83
diff -C2 -d -r1.82 -r1.83
*** main.py     19 Oct 2003 11:17:38 -0000      1.82
--- main.py     20 Oct 2003 19:32:33 -0000      1.83
***************
*** 11,14 ****
--- 11,17 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.83  2003/10/20 19:32:33  dischi
+ # catch exception caused by eventhandlers
+ #
  # Revision 1.82  2003/10/19 11:17:38  dischi
  # move gettext into config so that everything has _()
***************
*** 336,340 ****
              app = osd.focused_app()
              if app:
!                 app.eventhandler(event)
              else:
                  _debug_('no target for events given')
--- 339,359 ----
              app = osd.focused_app()
              if app:
!                 try:
!                     app.eventhandler(event)
!                 except:
!                     if config.FREEVO_EVENTHANDLER_SANDBOX:
!                         traceback.print_exc()
!                         from gui.AlertBox import AlertBox
!                         pop = AlertBox(text=_('Event \'%s\' crashed\n\nPlease take a 
' \
!                                               'look at the logfile and report the 
bug to ' \
!                                               'the Freevo mailing list. The state of 
'\
!                                               'Freevo may be corrupt now and this 
error '\
!                                               'could cause more errors until you 
restart '\
!                                               'Freevo.\n\nLogfile: %s\n\n') % \
!                                        (event, sys.stdout.logfile),
!                                        width=osd.width-2*config.OVERSCAN_X-50)
!                         pop.show()
!                     else:
!                         raise 
              else:
                  _debug_('no target for events given')




-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to