Fixed up the health check page

This commit is contained in:
Martyn Inglis
2016-03-03 16:41:21 +00:00
parent 0fd2572b08
commit 76ccb99666
5 changed files with 25 additions and 38 deletions

View File

@@ -183,15 +183,3 @@ def register_errorhandlers(application):
return useful_headers_after_request(resp)
for errcode in [401, 404, 403, 500]:
application.errorhandler(errcode)(render_error)
def get_app_version():
build = 'n/a'
build_time = "n/a"
try:
from app import version
build = version.__build__
build_time = version.__time__
except:
pass
return build, build_time