TypeError in database launch error handle
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Matthew D. Wood |
Bug Description
openstack_
TypeError: 'NoneType' object is not iterable
If there's an exception in openstack_
[code]
@memoized.
def flavors(self, request):
try:
return api.trove.
except Exception:
def populate_
flavor_list = [(f.id, "%s" % f.name) for f in self.flavors(
return sorted(flavor_list)
[code]
if self.flavors has an error, it will eventually return a None.
There's 2 options here:
A) return an empty list
B) redirect to another page
I have to believe that returning an empty list will be more confusing than a redirect, so I'd like to handle this with exceptions.handle.
Changed in horizon: | |
assignee: | nobody → Matthew D. Wood (woodm1979) |
Changed in horizon: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in horizon: | |
milestone: | none → juno-3 |
tags: | added: trove |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | juno-3 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/88413
Review: https:/