Re-enable important py3k checks for nfv/nova_api_proxy
Re-enabling some of the disabled tox warnings present on the pylint.rc file Re-enabling: W1645: exception-message-attribute Story: 2006796 Task: 43450 Signed-off-by: Bernardo Decco <bernardo.deccodesiqueira@windriver.com> Change-Id: I959e37c16917da7d40b5466e7a72498c2e2c6bb4
This commit is contained in:
parent
746f6d70f3
commit
bf5255e39a
@ -29,6 +29,7 @@ class ProxyException(Exception):
|
|||||||
code = 500
|
code = 500
|
||||||
headers = {}
|
headers = {}
|
||||||
safe = False
|
safe = False
|
||||||
|
message = ("An unknown exception occurred.")
|
||||||
|
|
||||||
def __init__(self, message=None, **kwargs):
|
def __init__(self, message=None, **kwargs):
|
||||||
self.kwargs = kwargs
|
self.kwargs = kwargs
|
||||||
@ -41,7 +42,7 @@ class ProxyException(Exception):
|
|||||||
|
|
||||||
if not message:
|
if not message:
|
||||||
try:
|
try:
|
||||||
message = self.message % kwargs
|
message = self.message % kwargs # pylint: disable=W1645
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise e
|
raise e
|
||||||
|
@ -116,9 +116,7 @@ enable=E1603,E1609,E1610,E1602,E1606,E1608,E1607,E1605,E1604,E1601,E1611,W1652,
|
|||||||
# W0703 broad except warning
|
# W0703 broad except warning
|
||||||
# Disable Python3 checkers:
|
# Disable Python3 checkers:
|
||||||
# W1618: no-absolute-import
|
# W1618: no-absolute-import
|
||||||
# W1645: exception-message-attribute
|
disable=C, R, E1101, E1121, W0404, W0601, W0603, W0613, W0621, W0703, W1618
|
||||||
disable=C, R, E1101, E1121, W0404, W0601, W0603, W0613, W0621, W0703, W1618,
|
|
||||||
W1645
|
|
||||||
|
|
||||||
|
|
||||||
[REPORTS]
|
[REPORTS]
|
||||||
|
Loading…
Reference in New Issue
Block a user