conduit r1382 - trunk/conduit



Author: jstowers
Date: Wed Mar 19 09:06:15 2008
New Revision: 1382
URL: http://svn.gnome.org/viewvc/conduit?rev=1382&view=rev

Log:
Fail Gracefully when converting unicode fails

Modified:
   trunk/conduit/DeltaProvider.py

Modified: trunk/conduit/DeltaProvider.py
==============================================================================
--- trunk/conduit/DeltaProvider.py	(original)
+++ trunk/conduit/DeltaProvider.py	Wed Mar 19 09:06:15 2008
@@ -33,7 +33,8 @@
             #Maybe we should be unicode....
             assert type(i) in [str,unicode], "LUID Must be str not %s" % type(i)
             #Make sure the are in unicode to assure good comparison with mapping UID's
-            allItems.append(unicode(i))
+            #FIXME: Replace or ignore non unicode chars?
+            allItems.append(unicode(i,errors='replace'))
 
         log.debug("Delta: Got %s items\n%s" % (len(allItems), allItems))
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]