Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6408/src
Modified Files:
config.py
Log Message:
prevent crash for bad TV.xml
Index: config.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/config.py,v
retrieving revision 1.104
retrieving revision 1.105
diff -C2 -d -r1.104 -r1.105
*** config.py 11 Apr 2004 18:51:59 -0000 1.104
--- config.py 12 Apr 2004 14:58:38 -0000 1.105
***************
*** 23,26 ****
--- 23,29 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.105 2004/04/12 14:58:38 dischi
+ # prevent crash for bad TV.xml
+ #
# Revision 1.104 2004/04/11 18:51:59 mikeruelle
# do dir processing for games too. fixes annoying crashes due to trailing slashes
***************
*** 852,857 ****
if TV_CHANNELS == None and plugin.is_active('tv'):
# auto detect them
! TV_CHANNELS = detect_channels()
!
#
# compile the regexp
--- 855,867 ----
if TV_CHANNELS == None and plugin.is_active('tv'):
# auto detect them
! try:
! TV_CHANNELS = detect_channels()
! except Exception, e:
! print
! print 'Error in TV.xml file, unable to set TV_CHANNELS'
! print e
! print
! TV_CHANNELS = []
!
#
# compile the regexp
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog