← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1398839] [NEW] Avoid unnecessary explicit str() conversion around exceptions

 

Public bug reported:

There are number of places like

except Exception as exc:
            LOG.error("Failed to get network: %s", str(exc))

where str() is not needed since %s substitution already does the same
conversion.

** Affects: neutron
     Importance: Undecided
     Assignee: Ann Kamyshnikova (akamyshnikova)
         Status: In Progress

** Changed in: neutron
     Assignee: (unassigned) => Ann Kamyshnikova (akamyshnikova)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1398839

Title:
  Avoid unnecessary explicit str() conversion around exceptions

Status in OpenStack Neutron (virtual network service):
  In Progress

Bug description:
  There are number of places like

  except Exception as exc:
              LOG.error("Failed to get network: %s", str(exc))

  where str() is not needed since %s substitution already does the same
  conversion.

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


Follow ups

References