Eliminate bare-except suppression

pull/15113/head
Mehrdad Afshari 7 years ago committed by Mehrdad Afshari
parent 4cc8ea9be1
commit 1611946161
  1. 1
      .pylintrc-tests
  2. 2
      src/python/grpcio_tests/tests/_loader.py

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

@ -54,7 +54,7 @@ class Loader(object):
for module in modules: for module in modules:
try: try:
package_paths = module.__path__ package_paths = module.__path__
except: except AttributeError:
continue continue
self.walk_packages(package_paths) self.walk_packages(package_paths)
coverage_context.stop() coverage_context.stop()

Loading…
Cancel
Save