Author: duncan
Date: Sat Mar 24 14:15:03 2007
New Revision: 9384
Modified:
branches/rel-1/freevo/src/directory.py
Log:
Fixed a problem when a label is valid it caused a crash
Modified: branches/rel-1/freevo/src/directory.py
==============================================================================
--- branches/rel-1/freevo/src/directory.py (original)
+++ branches/rel-1/freevo/src/directory.py Sat Mar 24 14:15:03 2007
@@ -304,8 +304,8 @@
return the specific attribute
"""
if key == 'type':
- if self.media:
- return _('Directory on disc [%s]') % self.media.label
+ if self.media and hasattr(self.media, 'label'):
+ return _('Directory on disc [%s]' % self.media.label)
return _('Directory')
if key == 'num_items':
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog