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:
Bernardo Decco 2021-09-27 14:08:21 -03:00 committed by Bernardo Decco de Siqueira
parent 746f6d70f3
commit bf5255e39a
2 changed files with 3 additions and 4 deletions

View File

@ -29,6 +29,7 @@ class ProxyException(Exception):
code = 500
headers = {}
safe = False
message = ("An unknown exception occurred.")
def __init__(self, message=None, **kwargs):
self.kwargs = kwargs
@ -41,7 +42,7 @@ class ProxyException(Exception):
if not message:
try:
message = self.message % kwargs
message = self.message % kwargs # pylint: disable=W1645
except Exception as e:
raise e

View File

@ -116,9 +116,7 @@ enable=E1603,E1609,E1610,E1602,E1606,E1608,E1607,E1605,E1604,E1601,E1611,W1652,
# W0703 broad except warning
# Disable Python3 checkers:
# W1618: no-absolute-import
# W1645: exception-message-attribute
disable=C, R, E1101, E1121, W0404, W0601, W0603, W0613, W0621, W0703, W1618,
W1645
disable=C, R, E1101, E1121, W0404, W0601, W0603, W0613, W0621, W0703, W1618
[REPORTS]