It complains about catching Exception, and wants specific exceptions to be caught instead. I reviewed the rclpy code handling the client futures, and discovered that there's actually no code setting exceptions on them currently, so the try/except blocks don't actually do anything. This PR removes them from the examples to resolve the flake8 failures.
While reviewing CI results I noticed these new flake8 failures on master:
https://ci.ros2.org/job/ci_linux/13378/#showFailuresLink
It complains about catching
Exception
, and wants specific exceptions to be caught instead. I reviewed therclpy
code handling the client futures, and discovered that there's actually no code setting exceptions on them currently, so thetry
/except
blocks don't actually do anything. This PR removes them from the examples to resolve the flake8 failures.@azeey FYI