Skip to content
Commits on Source (1)
...@@ -152,6 +152,7 @@ def redis_cache( ttl = 3600 ): ...@@ -152,6 +152,7 @@ def redis_cache( ttl = 3600 ):
@app.route( baseurl + '/ping' ) @app.route( baseurl + '/ping' )
def ping(): def ping():
if not config.db.check(): if not config.db.check():
config.db.connect()
return abort( 500 ) return abort( 500 )
else: else:
return "pong" return "pong"
......