From ec3c76ef2ebee02df26a17bbc4db0ba295201069 Mon Sep 17 00:00:00 2001 From: Gabriel Hurley Date: Sun, 29 Jul 2012 16:07:33 -0700 Subject: [PATCH] Guarantee that data is not undefined in quota index view. Change-Id: I99dfdb8ce0d21ce1d4384384fd9b381101ff5e4c --- horizon/dashboards/syspanel/quotas/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/horizon/dashboards/syspanel/quotas/views.py b/horizon/dashboards/syspanel/quotas/views.py index 1343510fb..3691d3748 100644 --- a/horizon/dashboards/syspanel/quotas/views.py +++ b/horizon/dashboards/syspanel/quotas/views.py @@ -41,5 +41,6 @@ class IndexView(tables.DataTableView): self.request.user.tenant_id) data = quota_set.items except: + data = [] exceptions.handle(self.request, _('Unable to get quota info.')) return data