Browse Source

fix last wrong exception in crawl

master
René Wagner 5 months ago
parent
commit
52d2b4c86d
  1. 2
      gus/crawl.py
  2. 1
      infra/update_index.sh

2
gus/crawl.py

@ -417,7 +417,7 @@ def index_content(resource, response):
try:
page.save()
except:
logging.error("Error adding page %s: %s", gus.lib.logging.strip_control_chars(resource.indexable_url), sys.exc_info()[0])
logging.error("Error adding page: %s", gus.lib.logging.strip_control_chars(resource.indexable_url))
return page, is_different

1
infra/update_index.sh

@ -1,4 +1,3 @@
/home/gus/.poetry/bin/poetry run crawl
cp -r /home/gus/index /home/gus/index.new
/home/gus/.poetry/bin/poetry run build_index
rm -rf /home/gus/index.old

Loading…
Cancel
Save