Closed chapulina closed 3 years ago
Can someone merge this? Me no have powers in this realm.
@chapulina can you please share the exact error message this addresses (and in which environment, e.g. the flake extension version).
This fixes the Travis CI provided by this repository:
----------------------------- Captured stderr call -----------------------------
/home/travis/build/colcon/colcon-cmake/colcon_cmake/event_handler/compile_commands.py:71:1: B902 blind except Exception: statement
except Exception:
^
/home/travis/build/colcon/colcon-cmake/colcon_cmake/event_handler/compile_commands.py:77:1: B902 blind except Exception: statement
except Exception:
^
flake8 reported 2 errors
------------------------------ Captured log call -------------------------------
B902 was introduced in a recent version of flake8-blind-except (https://github.com/elijahandrews/flake8-blind-except/pull/12). IMO, it's a bit overly restrictive and can be suppressed responsibly.
I've proposed a bunch of related PRs fixing CI in colcon repos:
Thanks for the patch.
Refer to the docs:
https://docs.python.org/3/library/os.path.html#os.path.getmtime
https://github.com/osrf/buildfarmer/issues/145