← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1291021] Re: Unhandled UnboundLocalError in instance DetailView

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1291021

Title:
  Unhandled UnboundLocalError in instance DetailView

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  If an error is raised in the DetailView in
  openstack_dashboard.dashboards.project.instances.views) we assume that
  a redirect will be raised. However, certain exception classes will not
  result in a redirect when handled by the standard Horizon exception
  handler.

  The problem spot is here
  (https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/instances/views.py#L270).
  If the error handler doesn't raise a redirect, control will be
  returned to the statement after the 'except' block and the 'instance'
  variable may be unbound.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1291021/+subscriptions


References