Author: duncan
Date: Mon May 21 16:13:16 2007
New Revision: 9594

Modified:
   branches/rel-1/freevo/src/directory.py

Log:
[ 1722590 ] Event 'PLUGIN_EVENT USB' crashed
Fix applied to check that mminfo is not None


Modified: branches/rel-1/freevo/src/directory.py
==============================================================================
--- branches/rel-1/freevo/src/directory.py      (original)
+++ branches/rel-1/freevo/src/directory.py      Mon May 21 16:13:16 2007
@@ -117,12 +117,13 @@
         #FIXME This should be done in the cache create
         if not self.image:
             mminfo = mmpython.parse(directory)
-            if mminfo['image']:
-                self.image = mminfo['image']
-            if mminfo['title']:
-                self.title = mminfo['title']
-            if mminfo['comment']:
-                self.comment = mminfo['comment']
+            if mminfo:
+                if mminfo['image']:
+                    self.image = mminfo['image']
+                if mminfo['title']:
+                    self.title = mminfo['title']
+                if mminfo['comment']:
+                    self.comment = mminfo['comment']
 
         if name:
             self.name = Unicode(name)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to