Eliminate broad-except suppression
This commit is contained in:
parent
1611946161
commit
dd9697fef8
|
|
@ -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…
Reference in New Issue