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:
Martin Basti authored and Jan Cholasta committed 2015-12-23 07:59:22 +01:00
1 parent 837e8f8160
commit fb3eab7ec7
2 files changed
+2 -3

No files matched your search

+2 -2
View File
@@ -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):
"""
-1
View File
@@ -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')