Update of /cvsroot/freevo/freevo/lib/pyepg
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3657

Modified Files:
        db_sqlite.py 
Log Message:
Make sure path exists when checking the size.  I may change these two ifs 
to use try/except and catch os.error (does not exist or is inaccessible).


Index: db_sqlite.py
===================================================================
RCS file: /cvsroot/freevo/freevo/lib/pyepg/db_sqlite.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** db_sqlite.py        7 Apr 2005 11:52:24 -0000       1.3
--- db_sqlite.py        7 Apr 2005 11:55:27 -0000       1.4
***************
*** 53,57 ****
      """
      def __init__(self, dbpath):
!         if os.path.getsize(dbpath) == 0:
              log.error('EPG database is zero size (invalid), removing it')
              os.system('rm %s' % dbath)
--- 53,57 ----
      """
      def __init__(self, dbpath):
!         if os.path.isfile(dbpath) and os.path.getsize(dbpath) == 0:
              log.error('EPG database is zero size (invalid), removing it')
              os.system('rm %s' % dbath)



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to