From 4e87cd62fce9d32415d591db1e4be3e08197652b Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 6 Apr 2019 19:16:59 -0600 Subject: [PATCH] removed logging issue --- main.py | 16 ---------------- static/script.js | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/main.py b/main.py index ebe83d9..4444dc8 100644 --- a/main.py +++ b/main.py @@ -32,22 +32,6 @@ def root(): # For the sake of example, use static information to inflate the template. # This will be replaced with real information in later steps. return render_template('index.html') - -@app.errorhandler(500) -def server_error(e): - logging.exception('An error occurred during a request.') - return """ - An internal error occurred:
{}
- See logs for full stacktrace. - """.format(e), 500 - -@app.errorhandler(400) -def server_error(e): - logging.exception('An error occurred during a request.') - return """ - An internal error occurred:
{}
- See logs for full stacktrace. - """.format(e), 400 @app.route('/generate', methods=['POST']) diff --git a/static/script.js b/static/script.js index 26b7ac6..d553865 100644 --- a/static/script.js +++ b/static/script.js @@ -20,7 +20,7 @@ var StoryTracker = { getFirstStory:function(){ console.log("Requesting first story") Typer.appendToText(initial_prompt) - StoryTracker.requestStory(initial_prompt, "") + StoryTracker.requestStory(initial_prompt, "None") },