Skip to content

Commit

Permalink
πŸ‘©β€πŸŒΎ Fix flake8: specify exception (#102)
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina authored Mar 15, 2021
1 parent fff0989 commit 8f1b92a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions colcon_cmake/event_handler/compile_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ def __call__(self, event): # noqa: D102
try:
workspace_level_mtime = os.path.getmtime(
str(workspace_level_json_path))
except Exception:
except OSError:
pass
else:
for json_path in sorted(package_level_json_paths):
try:
mtime = os.path.getmtime(str(json_path))
except Exception:
except OSError:
continue
if mtime > workspace_level_mtime:
break
Expand Down

0 comments on commit 8f1b92a

Please sign in to comment.