Merge branch 'foxy-backport-fix-flake8-blind-exception-error' into 'foxy'

Fix flake8 blind except error by using more concrete types

See merge request ros-tracing/ros2_tracing!224
This commit is contained in:
Ingo Lütkebohle 2021-01-13 06:32:16 +00:00
commit 203383f0f5

View file

@ -113,6 +113,6 @@ def is_lttng_installed() -> bool:
if 0 != process.returncode:
raise RuntimeError(stderr.decode())
return True
except Exception as e:
except (RuntimeError, FileNotFoundError) as e:
print(f'LTTng not found: {e}\n{message_doc}', file=sys.stderr)
return False