diff --git a/hosting/models.py b/hosting/models.py index 19e73cca..7b7a7792 100644 --- a/hosting/models.py +++ b/hosting/models.py @@ -513,10 +513,12 @@ class HostingBillLineItem(AssignPermissionsMixin, models.Model): vm_conf = StripeUtils.get_vm_config_from_stripe_id( self.stripe_plan.stripe_plan_id ) - item_detail += ("Cores: {}
RAM: {} GB
" - "SSD: {} GB
").format( - vm_conf['cores'], int(float(vm_conf['ram'])), vm_conf['ssd'] - ) + if vm_conf is not None: + item_detail += ("Cores: {}
RAM: {} GB
" + "SSD: {} GB
").format( + vm_conf['cores'], int(float(vm_conf['ram'])), + vm_conf['ssd'] + ) return item_detail class VMDetail(models.Model):