comparison rhodecode/lib/indexers/daemon.py @ 557:29ec9ddbe258

fixed whoosh indexing possible unicode decode errors
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 07 Oct 2010 18:30:50 +0200
parents f99075170eb4
children 3072935bdeed
comparison
equal deleted inserted replaced
556:65b2f150beb7 557:29ec9ddbe258
104 104
105 105
106 try: 106 try:
107 os.stat(path) 107 os.stat(path)
108 writer.add_document(owner=unicode(repo.contact), 108 writer.add_document(owner=unicode(repo.contact),
109 repository=u"%s" % repo.name, 109 repository=safe_unicode(repo.name),
110 path=u"%s" % path, 110 path=safe_unicode(path),
111 content=u_content, 111 content=u_content,
112 modtime=os.path.getmtime(path), 112 modtime=os.path.getmtime(path),
113 extension=ext) 113 extension=ext)
114 except OSError, e: 114 except OSError, e:
115 import errno 115 import errno