Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31210
Modified Files:
directory.py
Log Message:
fix crash if dir does not exist
Index: directory.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/directory.py,v
retrieving revision 1.128
retrieving revision 1.129
diff -C2 -d -r1.128 -r1.129
*** directory.py 29 May 2004 12:32:57 -0000 1.128
--- directory.py 6 Jun 2004 07:19:47 -0000 1.129
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.129 2004/06/06 07:19:47 dischi
+ # fix crash if dir does not exist
+ #
# Revision 1.128 2004/05/29 12:32:57 dischi
# use advanced sort for audio items (by trackno)
***************
*** 375,379 ****
( 'num_%s_items' % name, 0 ) ]
! timestamp = os.stat(self.dir)[stat.ST_MTIME]
num_timestamp = self.info['num_%s_timestamp' % name]
--- 378,386 ----
( 'num_%s_items' % name, 0 ) ]
! try:
! timestamp = os.stat(self.dir)[stat.ST_MTIME]
! except OSError:
! return
!
num_timestamp = self.info['num_%s_timestamp' % name]
***************
*** 563,567 ****
if hasattr(self.menu, 'skin_force_text_view'):
del self.menu.skin_force_text_view
!
display_type = self.display_type
if self.display_type == 'tv':
--- 570,577 ----
if hasattr(self.menu, 'skin_force_text_view'):
del self.menu.skin_force_text_view
! elif not os.path.exists(self.dir):
! AlertBox(text=_('Directory does not exist')).show()
! return
!
display_type = self.display_type
if self.display_type == 'tv':
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog