Skip to content

Commit 548e1ff

Browse files
committed
Fix minor code duplicated warning in pylint
1 parent 50c3362 commit 548e1ff

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/onelogin/saml2/logout_request.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ def is_valid(self, request_data):
291291

292292
return True
293293
except Exception as err:
294+
# pylint: disable=R0801
294295
self.__error = err.__str__()
295296
debug = self.__settings.is_debug_active()
296297
if debug:

src/onelogin/saml2/logout_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def is_valid(self, request_data, request_id=None):
136136
raise Exception('Signature validation failed. Logout Response rejected')
137137

138138
return True
139+
# pylint: disable=R0801
139140
except Exception as err:
140141
self.__error = err.__str__()
141142
debug = self.__settings.is_debug_active()

tests/pylint.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const-rgx=(([A-Z_][A-Z0-9_]*)|([a-z_][a-z0-9_]*)|(__.*__)|register|urlpatterns)$
1818
good-names=_,i,j,k,e,qs,pk,setUp,tearDown,el,ns,fd,js,nb,na,sp,SAML_SINGLE_LOGOUT_NOT_SUPPORTED,SAML_SINGLE_LOGOUT_NOT_SUPPORTED,NAMEID_WINDOWS_DOMAIN_QUALIFIED_NAME
1919
docstring-min-length=1
2020

21-
disable=E0611,W0703,W0511,W1401,F0401,W0102,E1103,W0212
21+
disable=E0611,W0703,W0511,W1401,F0401,W0102,E1103,W0212,I0011
2222

2323
[TYPECHECK]
2424

0 commit comments

Comments
 (0)