Guarantee that data is not undefined in quota index view.

Change-Id: I99dfdb8ce0d21ce1d4384384fd9b381101ff5e4c
This commit is contained in:
Gabriel Hurley 2012-07-29 16:07:33 -07:00
parent 0f0838017a
commit ec3c76ef2e

View File

@ -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