Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10739/src/util
Modified Files:
objectcache.py
Log Message:
fix strange crash with try except
Index: objectcache.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/objectcache.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** objectcache.py 20 Apr 2004 17:11:21 -0000 1.6
--- objectcache.py 21 Jun 2004 12:06:38 -0000 1.7
***************
*** 11,14 ****
--- 11,17 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.7 2004/06/21 12:06:38 dischi
+ # fix strange crash with try except
+ #
# Revision 1.6 2004/04/20 17:11:21 dischi
# fix strange crash
***************
*** 99,105 ****
key = unicode(key, config.LOCALE)
! # remove old one if key is already in cache
! if key in self.cache:
del self.lru[self.lru.index(key)]
# Do we need to delete the oldest item?
--- 102,110 ----
key = unicode(key, config.LOCALE)
! try:
! # remove old one if key is already in cache
del self.lru[self.lru.index(key)]
+ except:
+ return None
# Do we need to delete the oldest item?
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog