Commit b129cc6f authored by Caillat Michel's avatar Caillat Michel
Browse files

Added an @error definition on the WSGI app...probably it wont stay

parent b51fa4ee
#!/usr/bin/env python
from bottle import route, run, get, request, view, default_app, response
from bottle import route, run, get, request, view, default_app, response, error
import astropy
......@@ -567,6 +567,16 @@ def purgeDataBlocks():
#
#
#
# HTTP server error handling
#
@error(500)
def error500(error):
stack_str=''.join(traceback.format_stack())
global logger
logger.debug(f"{stack_str}")
return f"{error} : {stack_str}"
"""
start local bottle server
@port port number
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment