diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2010-10-07 18:30:50 +0200 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2010-10-07 18:30:50 +0200 |
commit | 889dbd58bccb17162797676a4ffca1dd72aa5836 (patch) | |
tree | 129048c6092697aa559f10dfaecb16c0119b687d /rhodecode | |
parent | 00e40870eb30de94871c5cc45efd6177aa01e903 (diff) |
fixed whoosh indexing possible unicode decode errors
Diffstat (limited to 'rhodecode')
-rw-r--r-- | rhodecode/lib/indexers/daemon.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rhodecode/lib/indexers/daemon.py b/rhodecode/lib/indexers/daemon.py index 8556372b..959326e5 100644 --- a/rhodecode/lib/indexers/daemon.py +++ b/rhodecode/lib/indexers/daemon.py @@ -106,8 +106,8 @@ class WhooshIndexingDaemon(object): try: os.stat(path) writer.add_document(owner=unicode(repo.contact), - repository=u"%s" % repo.name, - path=u"%s" % path, + repository=safe_unicode(repo.name), + path=safe_unicode(path), content=u_content, modtime=os.path.getmtime(path), extension=ext) |