Skip to content

Commit 360b788

Browse files
product grade logging fix
1 parent d774ac7 commit 360b788

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dojo/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,8 @@ def calculate_grade_internal(product, *args, **kwargs):
16161616
product.prod_numeric_grade = prod_numeric_grade
16171617
super(Product, product).save()
16181618
else:
1619-
logger.debug("Product %s grade %i is up to date", product.id, prod_numeric_grade)
1619+
# Use %s to safely handle None grades without formatter errors
1620+
logger.debug("Product %s grade %s is up to date", product.id, prod_numeric_grade)
16201621

16211622

16221623
def perform_product_grading(product):

0 commit comments

Comments
 (0)