Eliminate broad-except suppression

This commit is contained in:
Mehrdad Afshari 2018-04-18 23:48:15 -07:00 committed by Mehrdad Afshari
parent 1611946161
commit dd9697fef8
4 changed files with 3 additions and 4 deletions

View File

@ -40,7 +40,6 @@ disable=
too-many-locals,
redefined-variable-type,
redefined-outer-name,
broad-except,
ungrouped-imports,
too-many-branches,
too-many-arguments,

View File

@ -50,7 +50,7 @@ class TestRunner(threading.Thread):
test_case.test_interoperability(self._stub, None)
end_time = time.time()
self._histogram.add((end_time - start_time) * 1e9)
except Exception as e:
except Exception as e: # pylint: disable=broad-except
traceback.print_exc()
self._exception_queue.put(
Exception("An exception occured during test {}"

View File

@ -25,7 +25,7 @@ class SimpleFuture(object):
def wrapped_function():
try:
self._result = function(*args, **kwargs)
except Exception as error:
except Exception as error: # pylint: disable=broad-except
self._error = error
self._result = None

View File

@ -49,7 +49,7 @@ def cleanup_processes():
for process in processes:
try:
process.kill()
except Exception:
except Exception: # pylint: disable=broad-except
pass