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

Modified Files:
        tv_util.py 
Log Message:
exception handling, just in case...

Index: tv_util.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/tv_util.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** tv_util.py  5 Sep 2003 02:48:12 -0000       1.6
--- tv_util.py  8 Sep 2003 19:44:44 -0000       1.7
***************
*** 7,10 ****
--- 7,13 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.7  2003/09/08 19:44:44  dischi
+ # exception handling, just in case...
+ #
  # Revision 1.6  2003/09/05 02:48:12  rshortt
  # Removing src/tv and src/www from PYTHONPATH in the freevo script.  Therefore any 
module that was imported from src/tv/ or src/www that didn't have a leading 'tv.' or 
'www.' needed it added.  Also moved tv/tv.py to tv/tvmenu.py to avoid namespace 
conflicts.
***************
*** 117,123 ****
  
      guide = tv.epg_xmltv.get_guide()
!     return guide.chan_dict.get(channel_id).displayname
! 
!     return None
  
  def when_listings_expire():
--- 120,128 ----
  
      guide = tv.epg_xmltv.get_guide()
!     c = guide.chan_dict.get(channel_id)
!     if c:
!         return c.displayname
!     # this shouldn't happen, but just in case
!     return 'Unknown'
  
  def when_listings_expire():




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to