Skip to content

Commit

Permalink
[flask] fix missing SC by touching code raising the error
Browse files Browse the repository at this point in the history
  • Loading branch information
realkosty committed Nov 13, 2023
1 parent 580f901 commit 162ea94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 162ea94

Please sign in to comment.