mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-25 06:38:02 -05:00
Enable pylint lost exception check
Commit enables check and also fixes: ipaserver/dcerpc.py:718: [W0150(lost-exception), DomainValidator.__search_in_dc] return statement in finally block may swallow exception) Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
1 parent
837e8f8160
commit
fb3eab7ec7
2 files changed
+2
-3
No files matched your search
+2
-2
@@ -714,8 +714,8 @@ class DomainValidator(object):
|
||||
root_logger.debug(msg)
|
||||
else:
|
||||
root_logger.warning(msg)
|
||||
finally:
|
||||
return entries
|
||||
|
||||
return entries
|
||||
|
||||
def __retrieve_trusted_domain_gc_list(self, domain):
|
||||
"""
|
||||
|
||||
@@ -264,7 +264,6 @@ def main():
|
||||
linter.set_option('disable', 'global-statement')
|
||||
linter.set_option('disable', 'global-variable-not-assigned')
|
||||
linter.set_option('disable', 'global-variable-undefined')
|
||||
linter.set_option('disable', 'lost-exception')
|
||||
linter.set_option('disable', 'no-init')
|
||||
linter.set_option('disable', 'pointless-except')
|
||||
linter.set_option('disable', 'pointless-statement')
|
||||
|
||||
Reference in new issue
Block a user