Spaces:
Build error
Build error
Commit ·
516c523
1
Parent(s): 936d8e6
fix baseline return
Browse files
server.py
CHANGED
|
@@ -74,7 +74,8 @@ def create_app() -> Flask:
|
|
| 74 |
if result:
|
| 75 |
return jsonify(result), 200
|
| 76 |
else:
|
| 77 |
-
return jsonify({"error": "Failed to retrieve visa information"}),
|
|
|
|
| 78 |
|
| 79 |
@app.route('/', methods=['GET'])
|
| 80 |
def hello_world():
|
|
|
|
| 74 |
if result:
|
| 75 |
return jsonify(result), 200
|
| 76 |
else:
|
| 77 |
+
return jsonify({"error": "Failed to retrieve visa information"}), 404
|
| 78 |
+
return jsonify({"error": "Unexpected error"}), 500
|
| 79 |
|
| 80 |
@app.route('/', methods=['GET'])
|
| 81 |
def hello_world():
|