mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06: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:
parent
837e8f8160
commit
fb3eab7ec7
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user