server/facade: run without elasticsearch

...but don't let user upload any images until they fix their
configuration
This commit is contained in:
rr- 2017-02-02 19:39:30 +01:00
parent ec9c70ba68
commit 8be0e731a7
1 changed files with 5 additions and 1 deletions

View File

@ -110,7 +110,11 @@ def create_app():
purge_thread = threading.Thread(target=purge_old_uploads)
purge_thread.daemon = True
purge_thread.start()
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)