vmware-nsx/neutron/api
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
..
rpc Fix KeyError in dhcp_rpc when plugin.port_update raise exception 2014-10-15 13:14:40 +05:30
v2 Remove single occurrence of lost-exception warning 2014-10-20 10:12:39 +11:00
views Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
__init__.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
api_common.py Removing vim header lines 2014-04-01 10:38:31 -04:00
extensions.py Support for extensions in ML2 2014-08-31 05:43:01 -07:00
versions.py Removing vim header lines 2014-04-01 10:38:31 -04:00