From 8be0e731a7224ec928cc20c70d80eddc04c11eb2 Mon Sep 17 00:00:00 2001 From: rr- Date: Thu, 2 Feb 2017 19:39:30 +0100 Subject: [PATCH] server/facade: run without elasticsearch ...but don't let user upload any images until they fix their configuration --- server/szurubooru/facade.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)