diff --git a/application/libs/flask_elasticsearch/elasticsearch.py b/application/libs/flask_elasticsearch/elasticsearch.py index 600ac33925d1a17945f3f1d3eaeb05efe3fe3109..7be6ee4e67b46537f7a9e4bd6125a6422f475524 100644 --- a/application/libs/flask_elasticsearch/elasticsearch.py +++ b/application/libs/flask_elasticsearch/elasticsearch.py @@ -42,7 +42,7 @@ class FlaskElasticsearch(BaseFlaskElasticsearch): # Use the new_style teardown_appcontext if it's available, # otherwise fall back to the request context - if hasattr(app, "teardown_appcontext"): + if hasattr(app, 'teardown_appcontext'): app.teardown_appcontext(self.teardown) else: app.teardown_request(self.teardown)