Eliminate broad-except suppression

pull/15113/head
Mehrdad Afshari 7 years ago committed by Mehrdad Afshari
parent 1611946161
commit dd9697fef8
  1. 1
      .pylintrc-tests
  2. 2
      src/python/grpcio_tests/tests/stress/test_runner.py
  3. 2
      src/python/grpcio_tests/tests/unit/_cython/test_utilities.py
  4. 2
      src/python/grpcio_tests/tests/unit/_exit_test.py

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

@ -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 {}"

@ -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

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

Loading…
Cancel
Save