diff --git a/run.py b/run.py index 3fba4a2..b46906b 100644 --- a/run.py +++ b/run.py @@ -77,6 +77,15 @@ async def handle_litecord_err(err): }), err.status_code +@app.errorhandler(500) +async def handle_500(err): + return jsonify({ + 'error': True, + 'message': repr(err), + 'internal_server_error': True, + }) + + @app.route('/') async def index(): return 'hewwo'