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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to