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

Modified Files:
        rc.py 
Log Message:
better error handling

Index: rc.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/rc.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** rc.py       26 Oct 2003 17:04:26 -0000      1.26
--- rc.py       2 Nov 2003 10:50:15 -0000       1.27
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.27  2003/11/02 10:50:15  dischi
+ # better error handling
+ #
  # Revision 1.26  2003/10/26 17:04:26  dischi
  # Patch from Soenke Schwardt to use the time to fix repeat problems with
***************
*** 50,53 ****
--- 53,57 ----
  #endif
  
+ import os
  import copy
  import socket
***************
*** 122,127 ****
          if self.pylirc:
              try:
!                 pylirc.init('freevo', config.LIRCRC)
!                 pylirc.blocking(0)
              except RuntimeError:
                  print 'WARNING: Could not initialize PyLirc!'
--- 126,134 ----
          if self.pylirc:
              try:
!                 if os.path.isfile(config.LIRCRC):
!                     pylirc.init('freevo', config.LIRCRC)
!                     pylirc.blocking(0)
!                 else:
!                     raise IOError
              except RuntimeError:
                  print 'WARNING: Could not initialize PyLirc!'




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to