Guarantee that data is not undefined in quota index view.
Change-Id: I99dfdb8ce0d21ce1d4384384fd9b381101ff5e4c
This commit is contained in:
parent
0f0838017a
commit
ec3c76ef2e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user