Author: dmeyer
Date: Mon Jul  2 13:59:33 2007
New Revision: 2755

Modified:
   trunk/metadata/src/core.py

Log:
fix crash on bad data

Modified: trunk/metadata/src/core.py
==============================================================================
--- trunk/metadata/src/core.py  (original)
+++ trunk/metadata/src/core.py  Mon Jul  2 13:59:33 2007
@@ -217,7 +217,7 @@
                 value = table.get(tag, None)
                 if value is not None:
                     if not isinstance(value, (str, unicode)):
-                        value = unicode(str(value))
+                        value = str_to_unicode(str(value))
                     elif isinstance(value, str):
                         value = str_to_unicode(value)
                     value = value.strip().rstrip().replace(u'\0', u'')

-------------------------------------------------------------------------
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