Bugs item #1188197, was opened at 2005-04-22 17:09 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1188197&group_id=46652
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Martijn Voncken (mvoncken) Assigned to: Nobody/Anonymous (nobody) Summary: cvs: freevo cache aborts on non existing files or mminfo Initial Comment: The mediadb is new, or changed recently. I got some errors on "freevo cache" 1:aborts on non-existing files 2:aborts on non existing mmpython attributes: Q&D patch,I did not look for the "real" cause. --- src/mediadb/db.py 17 Apr 2005 14:57:58 -0000 1.7 +++ src/mediadb/db.py 22 Apr 2005 17:02:01 -0000 @@ -254,6 +254,8 @@ self.changed = True for basename, filename in self.__added: + if not os.path.exists(filename): + continue # check new files log.debug('new: %s' % basename) ext = basename[basename.rfind('.')+1:].lower() Index: src/mediadb/parser.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/mediadb/parser.py,v retrieving revision 1.6 diff -a -u -r1.6 parser.py --- src/mediadb/parser.py 17 Apr 2005 16:40:23 -0000 1.6 +++ src/mediadb/parser.py 22 Apr 2005 17:02:02 -0000 @@ -162,8 +162,8 @@ if mminfo: # store mmpython data as pickle for faster loading object['mminfo'] = cPickle.dumps(simplify(mminfo), - pickle.HIGHEST_PROTOCOL) - if mminfo.title: + pickle.HIGHEST_PROTOCOL) + if hasattr(mminfo,'title') and mminfo.title: object['title'] = mminfo.title.replace('\0', '').strip() else: object['title'] = title ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1188197&group_id=46652 ------------------------------------------------------- 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-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel