diff options
author | Đức Nam Trần | 2016-03-26 15:18:54 +0700 |
---|---|---|
committer | Đức Nam Trần | 2016-03-26 15:18:54 +0700 |
commit | 6cbc563db15b068965c1ffab337d3ce313520af1 (patch) | |
tree | e1970e3fa9b6ab6224b51e541a751f491f34ada0 /whoosh2.7.patch | |
download | aur-ldoce5viewer-git.tar.gz |
Clone from AUR bot and add patch to run with python-whoosh 2.7
Diffstat (limited to 'whoosh2.7.patch')
-rw-r--r-- | whoosh2.7.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/whoosh2.7.patch b/whoosh2.7.patch new file mode 100644 index 000000000000..18082dc742dd --- /dev/null +++ b/whoosh2.7.patch @@ -0,0 +1,32 @@ +diff --git a/ldoce5viewer/qtgui/indexer.py b/ldoce5viewer/qtgui/indexer.py +index 0fedba6..582e99f 100644 +--- a/ldoce5viewer/qtgui/indexer.py ++++ b/ldoce5viewer/qtgui/indexer.py +@@ -352,8 +352,12 @@ class IndexingThread(QThread): + i += 1 + if i % 10000 == 0: + self._message('{0} items added'.format(i)) +- fulltext_hwdphr_maker.add_item(itemtype, content, asfilter, ++ ++ try: ++ fulltext_hwdphr_maker.add_item(itemtype, content, asfilter, + label, path, prio, sortkey) ++ except Exception as e: ++ print ("itemtype=", itemtype, "content=", content, "label=", label, "path=", path, e) + + self._message('{0} items were added.'.format(i)) + self._message('Finalizing...') +@@ -379,8 +383,11 @@ class IndexingThread(QThread): + i += 1 + if i % 10000 == 0: + self._message('{0} items added'.format(i)) +- fulltext_defexa_maker.add_item(itemtype, content, asfilter, +- label, path, prio, sortkey) ++ try: ++ fulltext_defexa_maker.add_item(itemtype, content, asfilter, ++ label, path, prio, sortkey) ++ except Exception as e: ++ print ("itemtype=", itemtype, "content=", content, "=label", label, "path=", path, e) + + self._message('{0} items were added.'.format(i)) + self._message('Finalizing...')``` |