From d20d22ffb6e94aa9915397a588a3f9e95fa08500 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 27 Mar 2019 19:39:58 -0500 Subject: [PATCH] Fix rendering bug when price.multiple is null --- tailbone/views/products.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/products.py b/tailbone/views/products.py index eb34839a..a0cc73f9 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -457,7 +457,7 @@ class ProductsView(MasterView): return HTML("$ {:0.2f}  ($ {:0.2f} / {})".format( price.price, price.pack_price, price.pack_multiple)) if price.price is not None: - if price.multiple > 1: + if price.multiple is not None and price.multiple > 1: return "$ {:0.2f} / {}".format(price.price, price.multiple) return "$ {:0.2f}".format(price.price) if price.pack_price is not None: