|
|
@ -77,7 +77,7 @@ def write_to_db(data, dbpath):
|
|
|
|
@app.errorhandler(Exception)
|
|
|
|
@app.errorhandler(Exception)
|
|
|
|
def server_error(err):
|
|
|
|
def server_error(err):
|
|
|
|
"""catch all exception handler"""
|
|
|
|
"""catch all exception handler"""
|
|
|
|
app.logger.exception(err)
|
|
|
|
logging.exception(err)
|
|
|
|
return "exception", 400
|
|
|
|
return "exception", 400
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|