removed logging issue

This commit is contained in:
Nick
2019-04-06 19:16:59 -06:00
parent 6c17030b7a
commit 4e87cd62fc
2 changed files with 1 additions and 17 deletions
-16
View File
@@ -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: <pre>{}</pre>
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: <pre>{}</pre>
See logs for full stacktrace.
""".format(e), 400
@app.route('/generate', methods=['POST'])
+1 -1
View File
@@ -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")
},