add some debugging code
This commit is contained in:
parent
30fac51ca6
commit
16a42c15b7
|
@ -316,7 +316,11 @@ class SolrIndexProcessor(object):
|
|||
continue
|
||||
elif isinstance(value, (list, tuple)) and not field.multiValued:
|
||||
separator = getattr(field, 'separator', ' ')
|
||||
value = separator.join(value)
|
||||
try:
|
||||
value = separator.join(value)
|
||||
except UnicodeDecodeError:
|
||||
logger.warn('collective/solr/indexer.py:322, UnicodeDecodeError on %r', value)
|
||||
raise
|
||||
if isinstance(value, str):
|
||||
value = unicode(value, 'utf-8', 'ignore').encode('utf-8')
|
||||
data[name] = value
|
||||
|
|
Loading…
Reference in New Issue