aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorrr-2017-02-02 19:39:30 +0100
committerrr-2017-02-02 19:46:03 +0100
commit8be0e731a7224ec928cc20c70d80eddc04c11eb2 (patch)
tree4d1848e37b05f72b48a21de82b9ce9718c895869 /server
parentec9c70ba680795314c2af87169c4eabff934cc13 (diff)
server/facade: run without elasticsearch
...but don't let user upload any images until they fix their configuration
Diffstat (limited to 'server')
-rw-r--r--server/szurubooru/facade.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/szurubooru/facade.py b/server/szurubooru/facade.py
index 5aae121..26a6447 100644
--- a/server/szurubooru/facade.py
+++ b/server/szurubooru/facade.py
@@ -110,7 +110,11 @@ def create_app():
purge_thread = threading.Thread(target=purge_old_uploads)
purge_thread.daemon = True
purge_thread.start()
- posts.populate_reverse_search()
+
+ try:
+ posts.populate_reverse_search()
+ except errors.ThirdPartyError:
+ pass
rest.errors.handle(errors.AuthError, _on_auth_error)
rest.errors.handle(errors.ValidationError, _on_validation_error)

© 2015 - 2026 Jakob L. Kreuze