srbmihaicode commited on
Commit
4cb7b20
·
verified ·
1 Parent(s): d8173af

Fixed error bug

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def generate_journal_suggestion(current_page):
34
  return suggestion_response
35
 
36
  except Exception as e:
37
- return jsonify({"error": str(e)})
38
 
39
  @app.route("/", methods=["POST", "GET"])
40
  def home():
 
34
  return suggestion_response
35
 
36
  except Exception as e:
37
+ return f"Error: {str(e)}"
38
 
39
  @app.route("/", methods=["POST", "GET"])
40
  def home():