day-cohort-70 / Bangazon-API-BandyChamps

0 stars 0 forks source link

Bug: Division by zero error on products #39

Closed stevebrownlee closed 1 month ago

stevebrownlee commented 2 months ago

CRITICAL ISSUE

When the client requests a single product, or all products, the status code is 500 and the response is always the following.

ZeroDivisionError at /products
division by zero

The most recent feature added by the team was adding an average rating key to each product. You might want to start there and see if there are any try/except blocks you can implement.