Narrow broad except to OSError and CalledProcessError

This commit is contained in:
J. Nick Koston
2026-03-10 13:44:43 -10:00
parent 7113e41550
commit f92f957af0
+1 -1
View File
@@ -285,7 +285,7 @@ def _addr2line(tool: str, elf: Path, addr: str) -> str:
check=True,
)
return result.stdout.strip()
except Exception: # pylint: disable=broad-except
except (OSError, subprocess.CalledProcessError):
return f"{addr} (decode failed)"