Spaces:
Sleeping
Sleeping
Update menu.py
Browse files
menu.py
CHANGED
|
@@ -279,4 +279,7 @@ def add_to_cart():
|
|
| 279 |
return jsonify({"success": False, "error": f"Invalid data format: {str(e)}"}), 400
|
| 280 |
except Exception as e:
|
| 281 |
print(f"Error adding item to cart: {str(e)}")
|
| 282 |
-
return jsonify({"success": False, "error": "An error occurred while adding the item to the cart."}), 500
|
|
|
|
|
|
|
|
|
|
|
|
| 279 |
return jsonify({"success": False, "error": f"Invalid data format: {str(e)}"}), 400
|
| 280 |
except Exception as e:
|
| 281 |
print(f"Error adding item to cart: {str(e)}")
|
| 282 |
+
return jsonify({"success": False, "error": "An error occurred while adding the item to the cart."}), 500
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
|