Spaces:
Runtime error
Runtime error
Update Menu_page.py
Browse files- Menu_page.py +2 -1
Menu_page.py
CHANGED
@@ -229,4 +229,5 @@ def add_to_cart():
|
|
229 |
except Exception as e:
|
230 |
# Log the error for debugging and return a general error message
|
231 |
print(f"Error adding item to cart: {str(e)}")
|
232 |
-
return jsonify({"success": False, "error": "An error occurred while adding the item to the cart."}), 500
|
|
|
|
229 |
except Exception as e:
|
230 |
# Log the error for debugging and return a general error message
|
231 |
print(f"Error adding item to cart: {str(e)}")
|
232 |
+
return jsonify({"success": False, "error": "An error occurred while adding the item to the cart."}), 500
|
233 |
+
|