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:
commit
203383f0f5
1 changed files with 1 additions and 1 deletions
|
@ -113,6 +113,6 @@ def is_lttng_installed() -> bool:
|
||||||
if 0 != process.returncode:
|
if 0 != process.returncode:
|
||||||
raise RuntimeError(stderr.decode())
|
raise RuntimeError(stderr.decode())
|
||||||
return True
|
return True
|
||||||
except Exception as e:
|
except (RuntimeError, FileNotFoundError) as e:
|
||||||
print(f'LTTng not found: {e}\n{message_doc}', file=sys.stderr)
|
print(f'LTTng not found: {e}\n{message_doc}', file=sys.stderr)
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue