From 72d5499c5a902c860c5496ee6e604526672e5777 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Thu, 25 Feb 2016 13:46:33 +0100 Subject: pylint: supress false positive no-member errors pylint 1.5 prints many false positive no-member errors which are supressed by this commit. https://fedorahosted.org/freeipa/ticket/5615 Reviewed-By: David Kupka --- ipaserver/install/installutils.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ipaserver/install/installutils.py') diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index 4489cd80b..071242654 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -166,7 +166,9 @@ def verify_fqdn(host_name, no_host_dns=False, local_hostname=True): except socket.gaierror: pass except socket.error as e: - root_logger.debug('socket.gethostbyaddr() error: %d: %s' % (e.errno, e.strerror)) + root_logger.debug( + 'socket.gethostbyaddr() error: %d: %s', + e.errno, e.strerror) # pylint: disable=no-member if no_host_dns: print("Warning: skipping DNS resolution of host", host_name) @@ -733,7 +735,10 @@ def run_script(main_function, operation_name, log_file_name=None, try: return_value = main_function() except BaseException as e: - if isinstance(e, SystemExit) and (e.code is None or e.code == 0): + if ( + isinstance(e, SystemExit) and + (e.code is None or e.code == 0) # pylint: disable=no-member + ): # Not an error after all root_logger.info('The %s command was successful', operation_name) -- cgit