diff --git a/flask/src/main.py b/flask/src/main.py index 3adec0c2..e893ed89 100644 --- a/flask/src/main.py +++ b/flask/src/main.py @@ -101,9 +101,9 @@ def checkout(): for inventoryItem in inventory: print("> inventoryItem.count", inventoryItem['count']) if (inventoryItem.count < quantities[cartItem] or quantities[cartItem] >= inventoryItem.count): - raise Exception("Not enough inventory for " + "product") + raise Exception("Not enough inventory for product") if len(inventory) == 0 or len(quantities) == 0: - raise Exception("Not enough inventory for " + "product") + raise Exception("Not enough inventory for product") response = make_response("success") return response