vmware-nsx/neutron
Angus Lees fe57eb2bff Remove single occurrence of lost-exception warning
Returning within a finally block can be surprising since the finally
block will "hijack" the regular return flow.  In this case, pylint is
trying to warn us that the return-within-finally would discard the
earlier caught exception.  For this particular function we don't care
that the exception is lost, so the existing code is correct but possibly
confusing.

Our options are:
1. Disable the lost-exception warning for this function
2. Rewrite the function to avoid return-within-finally

This change takes approach (2), since the required change is trivial.

This change also enables the corresponding pylint check now that the
only offending case has been removed.

Change-Id: If1706851b4bd67ebdbbdb3485984773598efdf7a
2014-10-20 10:12:39 +11:00
..
agent Merge "remove E251 exemption from pep8 check" 2014-10-15 10:33:22 +00:00
api Remove single occurrence of lost-exception warning 2014-10-20 10:12:39 +11:00
cmd Merge "Pythonified sanity_check.all_tests_passed" 2014-10-07 23:34:02 +00:00
common Merge "Fix quota limit range validator" 2014-10-11 08:12:54 +00:00
db Merge "DB: Only ask for MAC instead of entire port" 2014-10-18 09:35:31 +00:00
debug Merge "Clarify message when no probes are cleared" 2014-09-13 15:29:24 +00:00
extensions remove E251 exemption from pep8 check 2014-10-14 15:39:34 -04:00
hacking Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
locale Imported Translations from Transifex 2014-10-10 06:42:51 +00:00
notifiers Add admin tenant name to nova notifier 2014-09-30 12:18:55 -06:00
openstack Remove sslutils from openstack.common 2014-10-07 11:16:49 +02:00
plugins Merge "openvswitch: Remove no longer used options" 2014-10-18 09:02:02 +00:00
scheduler Merge "Add a new scheduler for the l3 HA" 2014-09-13 13:06:47 +00:00
server Configure agents using neutron.common.config.init (formerly .parse) 2014-06-17 21:56:24 +02:00
services Merge "Add pylint tox environment and disable all existing warnings" 2014-10-18 08:57:58 +00:00
tests Merge "openvswitch: Remove no longer used options" 2014-10-18 09:02:02 +00:00
__init__.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
auth.py add auth token to context 2014-08-12 11:17:21 +09:00
context.py add auth token to context 2014-08-12 11:17:21 +09:00
hooks.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
manager.py Moved rpc_compat.py code back into rpc.py 2014-06-24 10:35:39 +02:00
neutron_plugin_base_v2.py Throw exception instances instead of classes 2014-09-07 12:56:30 +04:00
policy.py Merge "Forbid regular users to reset admin-only attrs to default values" 2014-09-25 03:58:57 +00:00
quota.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
service.py Rename workers to api_workers and simplify code 2014-09-15 22:34:25 +00:00
version.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
wsgi.py Rename workers to api_workers and simplify code 2014-09-15 22:34:25 +00:00