Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Enable fault handler

Daoud Clarke851fe3f45ec4
diff --git a/mwmbl/apps.py b/mwmbl/apps.py
index d3f0983..45b9403 100644
--- a/mwmbl/apps.py
+++ b/mwmbl/apps.py
@@ -1,3 +1,4 @@
+import faulthandler
from multiprocessing import Process, Queue
from pathlib import Path
@@ -21,6 +22,8 @@ class MwmblConfig(AppConfig):
from mwmbl.tinysearchengine.indexer import TinyIndex, Document, PAGE_SIZE
from mwmbl.url_queue import update_queue_continuously
+ faulthandler.enable()
+
index_path = Path(settings.DATA_PATH) / INDEX_NAME
try:
existing_index = TinyIndex(item_factory=Document, index_path=index_path)