Skip to content

Commit 604f109

Browse files
product grade logging fix (#13268)
1 parent ef7e5cd commit 604f109

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
@@ -1604,7 +1604,8 @@ def calculate_grade(product, *args, **kwargs):
16041604
product.prod_numeric_grade = prod_numeric_grade
16051605
super(Product, product).save()
16061606
else:
1607-
logger.debug("Product %s grade %i is up to date", product.id, prod_numeric_grade)
1607+
# Use %s to safely handle None grades without formatter errors
1608+
logger.debug("Product %s grade %s is up to date", product.id, prod_numeric_grade)
16081609

16091610

16101611
def get_celery_worker_status():

0 commit comments

Comments
 (0)